import math

number = input().split(" ")
A = int(number[0])
P = int(number[1])
apple = (A * 3) + P
print(math.floor(apple / 2)) import math math number = input().split(" ") number input().split(" ") ().split () input split " " A = int(number[0]) A int(number[0]) int number[0] number 0 P = int(number[1]) P int(number[1]) int number[1] number 1 apple = (A * 3) + P apple (A * 3) + P A * 3 A 3 P print(math.floor(apple / 2)) print math.floor(apple / 2) math.floor math floor apple / 2 apple 2 apple = (A * 3) + P (A * 3) + P apple P = int(number[1]) int(number[1]) P number = input().split(" ") input().split(" ") number A = int(number[0]) int(number[0]) A
import math

number = input().split(" ")
A = int(number[0])
P = int(number[1])
apple = (A * 3) + P
print(math.floor(apple / 2))