x,y = [int(x) for x in input().split()]

print((x*3+y)//2) int(x) for x in input().split() for x in input().split() x input().split() ().split () input split for x in input().split() int(x) int x x,y = [int(x) for x in input().split()] x [int(x) for x in input().split()] y print((x*3+y)//2) print (x*3+y)//2 x*3+y x*3 x 3 y 2 y = [int(x) for x in input().split()] [int(x) for x in input().split()] y x,y = [int(x) for x in input().split()] [int(x) for x in input().split()] x
x,y = [int(x) for x in input().split()]

print((x*3+y)//2)
