a, p = map(int, input().split())

a *= 3

ans = (a+p)/2

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

a *= 3

ans = (a+p)/2

print(int(ans))