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