a,p = map(int, input().split())
sum = a*3+p
pi = sum//2
print(pi) a,p = map(int, input().split()) a map(int, input().split()) map int input().split() ().split () input split p sum = a*3+p sum a*3+p a*3 a 3 p pi = sum//2 pi sum//2 sum 2 print(pi) print pi pi = sum//2 sum//2 pi p = map(int, input().split()) map(int, input().split()) p sum = a*3+p a*3+p sum a,p = map(int, input().split()) map(int, input().split()) a
a,p = map(int, input().split())
sum = a*3+p
pi = sum//2
print(pi)
