A,P=map(int,input().split())
print((3*A)//2+((A%2+P)//2)) A,P=map(int,input().split()) A map(int,input().split()) map int input().split() ().split () input split P print((3*A)//2+((A%2+P)//2)) print (3*A)//2+((A%2+P)//2) (3*A)//2 3*A 3 A 2 (A%2+P)//2 A%2+P A%2 A 2 P 2 A,P=map(int,input().split()) map(int,input().split()) A P=map(int,input().split()) map(int,input().split()) P
A,P=map(int,input().split())
print((3*A)//2+((A%2+P)//2))