a,p = map(int,input().split())

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

print( int(((a*3)+p)/2))