line = input().split(' ')
a = int(line[0])
p = int(line[1])
n = (a*3 + p)//2
print(n) line = input().split(' ') line input().split(' ') ().split () input split ' ' a = int(line[0]) a int(line[0]) int line[0] line 0 p = int(line[1]) p int(line[1]) int line[1] line 1 n = (a*3 + p)//2 n (a*3 + p)//2 a*3 + p a*3 a 3 p 2 print(n) print n a = int(line[0]) int(line[0]) a n = (a*3 + p)//2 (a*3 + p)//2 n line = input().split(' ') input().split(' ') line p = int(line[1]) int(line[1]) p
line = input().split(' ')
a = int(line[0])
p = int(line[1])
n = (a*3 + p)//2
print(n)