a,p = (int(a) for a in input().split())
print((a*3+p)//2) int(a) for a in input().split() for a in input().split() a input().split() ().split () input split for a in input().split() int(a) int a a,p = (int(a) for a in input().split()) a (int(a) for a in input().split()) p print((a*3+p)//2) print (a*3+p)//2 a*3+p a*3 a 3 p 2 p = (int(a) for a in input().split()) (int(a) for a in input().split()) p a,p = (int(a) for a in input().split()) (int(a) for a in input().split()) a
a,p = (int(a) for a in input().split())
print((a*3+p)//2)
