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

if x[0] < 1 and x[1] < 2:
    print(0)
else:
    print(((x[0] * 3) + x[1]) // 2) int(i) for i in input().split() for i in input().split() i input().split() ().split () input split for i in input().split() int(i) int i x = [int(i) for i in input().split()] x [int(i) for i in input().split()] if x[0] < 1 and x[1] < 2:
    print(0)
else:
    print(((x[0] * 3) + x[1]) // 2) x[0] < 1 and x[1] < 2 x[0] < 1 x[0] x 0 1 x[1] < 2 x[1] x 1 2 print(0) print 0 print(((x[0] * 3) + x[1]) // 2) print ((x[0] * 3) + x[1]) // 2 (x[0] * 3) + x[1] x[0] * 3 x[0] x 0 3 x[1] x 1 2 x = [int(i) for i in input().split()] [int(i) for i in input().split()] x
x = [int(i) for i in input().split()]

if x[0] < 1 and x[1] < 2:
    print(0)
else:
    print(((x[0] * 3) + x[1]) // 2)