x, y = input("").split(" ")
a = int(x)
y = int(y)
print(int((3*a + y)/2)) x, y = input("").split(" ") x input("").split(" ") ("").split ("") input "" split " " y a = int(x) a int(x) int x y = int(y) y int(y) int y print(int((3*a + y)/2)) print int((3*a + y)/2) int (3*a + y)/2 3*a + y 3*a 3 a y 2 a = int(x) int(x) a y = int(y) int(y) y y = input("").split(" ") input("").split(" ") y x, y = input("").split(" ") input("").split(" ") x
x, y = input("").split(" ")
a = int(x)
y = int(y)
print(int((3*a + y)/2))