# A - Apple Pie
a,p=list(map(int,input().split()))
sum=(a*3)+p
print(sum//2)
 a,p=list(map(int,input().split())) a list(map(int,input().split())) list map(int,input().split()) map int input().split() ().split () input split p sum=(a*3)+p sum (a*3)+p a*3 a 3 p print(sum//2) print sum//2 sum 2 a,p=list(map(int,input().split())) list(map(int,input().split())) a sum=(a*3)+p (a*3)+p sum p=list(map(int,input().split())) list(map(int,input().split())) p
# A - Apple Pie
a,p=list(map(int,input().split()))
sum=(a*3)+p
print(sum//2)

