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