a, p = map(int, input().split())
total = a * 3.0 + p
res = int(total // 2)
print(res) a, p = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split p total = a * 3.0 + p total a * 3.0 + p a * 3.0 a 3.0 p res = int(total // 2) res int(total // 2) int total // 2 total 2 print(res) print res res = int(total // 2) int(total // 2) res a, p = map(int, input().split()) map(int, input().split()) a p = map(int, input().split()) map(int, input().split()) p total = a * 3.0 + p a * 3.0 + p total
a, p = map(int, input().split())
total = a * 3.0 + p
res = int(total // 2)
print(res)