A,P = [int(i) for i in input().split()]
P = P + 3 * A
pi = P // 2
print(pi)
 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 A,P = [int(i) for i in input().split()] A [int(i) for i in input().split()] P P = P + 3 * A P P + 3 * A P 3 * A 3 A pi = P // 2 pi P // 2 P 2 print(pi) print pi P = [int(i) for i in input().split()] [int(i) for i in input().split()] P P = P + 3 * A P + 3 * A P pi = P // 2 P // 2 pi A,P = [int(i) for i in input().split()] [int(i) for i in input().split()] A
A,P = [int(i) for i in input().split()]
P = P + 3 * A
pi = P // 2
print(pi)

