x = input()
x_list = x.split(" ")
a = int(x_list[0])
p = int(x_list[1])

apple = ( 3*a + p ) // 2
print(apple) x = input() x input() input x_list = x.split(" ") x_list x.split(" ") x.split x split " " a = int(x_list[0]) a int(x_list[0]) int x_list[0] x_list 0 p = int(x_list[1]) p int(x_list[1]) int x_list[1] x_list 1 apple = ( 3*a + p ) // 2 apple ( 3*a + p ) // 2 3*a + p 3*a 3 a p 2 print(apple) print apple x = input() input() x x_list = x.split(" ") x.split(" ") x_list p = int(x_list[1]) int(x_list[1]) p apple = ( 3*a + p ) // 2 ( 3*a + p ) // 2 apple a = int(x_list[0]) int(x_list[0]) a
x = input()
x_list = x.split(" ")
a = int(x_list[0])
p = int(x_list[1])

apple = ( 3*a + p ) // 2
print(apple)