inp = input()
A = int(inp.split()[0])
P = int(inp.split()[1])
result = int((A*3+P)/2)
print(result) inp = input() inp input() input A = int(inp.split()[0]) A int(inp.split()[0]) int inp.split()[0] inp.split() inp.split inp split 0 P = int(inp.split()[1]) P int(inp.split()[1]) int inp.split()[1] inp.split() inp.split inp split 1 result = int((A*3+P)/2) result int((A*3+P)/2) int (A*3+P)/2 A*3+P A*3 A 3 P 2 print(result) print result inp = input() input() inp result = int((A*3+P)/2) int((A*3+P)/2) result P = int(inp.split()[1]) int(inp.split()[1]) P A = int(inp.split()[0]) int(inp.split()[0]) A
inp = input()
A = int(inp.split()[0])
P = int(inp.split()[1])
result = int((A*3+P)/2)
print(result)