Ful,Pic=map(int,input().split())
print((Ful*3+Pic)//2) Ful,Pic=map(int,input().split()) Ful map(int,input().split()) map int input().split() ().split () input split Pic print((Ful*3+Pic)//2) print (Ful*3+Pic)//2 Ful*3+Pic Ful*3 Ful 3 Pic 2 Pic=map(int,input().split()) map(int,input().split()) Pic Ful,Pic=map(int,input().split()) map(int,input().split()) Ful
Ful,Pic=map(int,input().split())
print((Ful*3+Pic)//2)