
si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
a,p=nm()
print(((3*a+p)//2)) si = lambda: input() si lambda: input() input() input ni = lambda: int(input()) ni lambda: int(input()) int(input()) int input() input nm = lambda: map(int, input().split()) nm lambda: map(int, input().split()) map(int, input().split()) map int input().split() ().split () input split nl = lambda: list(map(int, input().split())) nl lambda: list(map(int, input().split())) list(map(int, input().split())) list map(int, input().split()) map int input().split() ().split () input split a,p=nm() a nm() nm p print(((3*a+p)//2)) print (3*a+p)//2 3*a+p 3*a 3 a p 2 p=nm() nm() p a,p=nm() nm() a nl = lambda: list(map(int, input().split())) lambda: list(map(int, input().split())) nl ni = lambda: int(input()) lambda: int(input()) ni nm = lambda: map(int, input().split()) lambda: map(int, input().split()) nm si = lambda: input() lambda: input() si

si = lambda: input()
ni = lambda: int(input())
nm = lambda: map(int, input().split())
nl = lambda: list(map(int, input().split()))
a,p=nm()
print(((3*a+p)//2))
