a,p=[int(x) for x in input().split()]
ans=(3*a+p)//2
print(ans) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x a,p=[int(x) for x in input().split()] a [int(x) for x in input().split()] p ans=(3*a+p)//2 ans (3*a+p)//2 3*a+p 3*a 3 a p 2 print(ans) print ans p=[int(x) for x in input().split()] [int(x) for x in input().split()] p a,p=[int(x) for x in input().split()] [int(x) for x in input().split()] a ans=(3*a+p)//2 (3*a+p)//2 ans
a,p=[int(x) for x in input().split()]
ans=(3*a+p)//2
print(ans)