a,p = list(map(int, input("").split()))
an=3*a+p
an=an//2
print(an) 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 an=3*a+p an 3*a+p 3*a 3 a p an=an//2 an an//2 an 2 print(an) print an an=3*a+p 3*a+p an an=an//2 an//2 an a,p = list(map(int, input("").split())) list(map(int, input("").split())) a p = list(map(int, input("").split())) list(map(int, input("").split())) p
a,p = list(map(int, input("").split()))
an=3*a+p
an=an//2
print(an)