# coding: utf-8
# Your code here!
a,p=input().split()
a=int(a)
p=int(p)
x=(a*3)
print((p+x)//2) a,p=input().split() a input().split() ().split () input split p a=int(a) a int(a) int a p=int(p) p int(p) int p x=(a*3) x a*3 a 3 print((p+x)//2) print (p+x)//2 p+x p x 2 p=input().split() input().split() p p=int(p) int(p) p a=int(a) int(a) a a,p=input().split() input().split() a x=(a*3) a*3 x
# coding: utf-8
# Your code here!
a,p=input().split()
a=int(a)
p=int(p)
x=(a*3)
print((p+x)//2)