from math import floor
a, p = map(int, input().split())

print(int(floor((3*a+p)/2))) from math import floor a, p = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split p print(int(floor((3*a+p)/2))) print int(floor((3*a+p)/2)) int floor((3*a+p)/2) floor (3*a+p)/2 3*a+p 3*a 3 a p 2 p = map(int, input().split()) map(int, input().split()) p a, p = map(int, input().split()) map(int, input().split()) a
from math import floor
a, p = map(int, input().split())

print(int(floor((3*a+p)/2)))