import math

inputted = list(map(int, input().split()))
A = inputted[0]
P = inputted[1]

answer = math.floor((A * 3 + P) / 2)

print(answer) import math math inputted = list(map(int, input().split())) inputted list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split A = inputted[0] A inputted[0] inputted 0 P = inputted[1] P inputted[1] inputted 1 answer = math.floor((A * 3 + P) / 2) answer math.floor((A * 3 + P) / 2) math.floor math floor (A * 3 + P) / 2 A * 3 + P A * 3 A 3 P 2 print(answer) print answer answer = math.floor((A * 3 + P) / 2) math.floor((A * 3 + P) / 2) answer inputted = list(map(int, input().split())) list(map(int, input().split())) inputted P = inputted[1] inputted[1] P A = inputted[0] inputted[0] A
import math

inputted = list(map(int, input().split()))
A = inputted[0]
P = inputted[1]

answer = math.floor((A * 3 + P) / 2)

print(answer)
