a, p = [int(x) for x in input().split()]
print((a * 3 + p) // 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 a, p = [int(x) for x in input().split()] a [int(x) for x 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(x) for x in input().split()] [int(x) for x in input().split()] p a, p = [int(x) for x in input().split()] [int(x) for x in input().split()] a
a, p = [int(x) for x in input().split()]
print((a * 3 + p) // 2)
