a,b = tuple(map(int,input().split()))
c = (a*3 + b )//2
print(c) a,b = tuple(map(int,input().split())) a tuple(map(int,input().split())) tuple map(int,input().split()) map int input().split() ().split () input split b c = (a*3 + b )//2 c (a*3 + b )//2 a*3 + b a*3 a 3 b 2 print(c) print c a,b = tuple(map(int,input().split())) tuple(map(int,input().split())) a b = tuple(map(int,input().split())) tuple(map(int,input().split())) b c = (a*3 + b )//2 (a*3 + b )//2 c
a,b = tuple(map(int,input().split()))
c = (a*3 + b )//2
print(c)