from sys import stdin

a, p = (int(x) for x in stdin.readline().rstrip().split())
print(((3*a)+p)//2) from sys import stdin int(x) for x in stdin.readline().rstrip().split() for x in stdin.readline().rstrip().split() x stdin.readline().rstrip().split() stdin.readline().rstrip().split stdin.readline().rstrip() stdin.readline().rstrip stdin.readline() stdin.readline stdin readline rstrip split for x in stdin.readline().rstrip().split() int(x) int x a, p = (int(x) for x in stdin.readline().rstrip().split()) a (int(x) for x in stdin.readline().rstrip().split()) p print(((3*a)+p)//2) print ((3*a)+p)//2 (3*a)+p 3*a 3 a p 2 a, p = (int(x) for x in stdin.readline().rstrip().split()) (int(x) for x in stdin.readline().rstrip().split()) a p = (int(x) for x in stdin.readline().rstrip().split()) (int(x) for x in stdin.readline().rstrip().split()) p
from sys import stdin

a, p = (int(x) for x in stdin.readline().rstrip().split())
print(((3*a)+p)//2)
