x = input().split(" ")
a = int(x[0])
b = int(x[1])

r = (a * 3) + b

print(r // 2) x = input().split(" ") x input().split(" ") ().split () input split " " a = int(x[0]) a int(x[0]) int x[0] x 0 b = int(x[1]) b int(x[1]) int x[1] x 1 r = (a * 3) + b r (a * 3) + b a * 3 a 3 b print(r // 2) print r // 2 r 2 x = input().split(" ") input().split(" ") x b = int(x[1]) int(x[1]) b a = int(x[0]) int(x[0]) a r = (a * 3) + b (a * 3) + b r
x = input().split(" ")
a = int(x[0])
b = int(x[1])

r = (a * 3) + b

print(r // 2)