A, B = map(int,input().split())
val = A * 3 + B
print(val//2) A, B = map(int,input().split()) A map(int,input().split()) map int input().split() ().split () input split B val = A * 3 + B val A * 3 + B A * 3 A 3 B print(val//2) print val//2 val 2 val = A * 3 + B A * 3 + B val B = map(int,input().split()) map(int,input().split()) B A, B = map(int,input().split()) map(int,input().split()) A
A, B = map(int,input().split())
val = A * 3 + B
print(val//2)