import math
x = input().split()
a = int(x[0])
p = int(x[1])
print(math.floor((a * 3 +p) / 2)) import math math x = input().split() x input().split() ().split () input split a = int(x[0]) a int(x[0]) int x[0] x 0 p = int(x[1]) p int(x[1]) int x[1] x 1 print(math.floor((a * 3 +p) / 2)) print math.floor((a * 3 +p) / 2) math.floor math floor (a * 3 +p) / 2 a * 3 +p a * 3 a 3 p 2 a = int(x[0]) int(x[0]) a p = int(x[1]) int(x[1]) p x = input().split() input().split() x
import math
x = input().split()
a = int(x[0])
p = int(x[1])
print(math.floor((a * 3 +p) / 2))