import math
A, P = input().split()
A = int(A)
P = int(P)

print(math.floor((3*A+P)/2)) import math math A, P = input().split() A input().split() ().split () input split P A = int(A) A int(A) int A P = int(P) P int(P) int P print(math.floor((3*A+P)/2)) print math.floor((3*A+P)/2) math.floor math floor (3*A+P)/2 3*A+P 3*A 3 A P 2 A, P = input().split() input().split() A A = int(A) int(A) A P = int(P) int(P) P P = input().split() input().split() P
import math
A, P = input().split()
A = int(A)
P = int(P)

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