A,P = map (int, input ().split ())
x = A*3+P
print (round (x//2)) A,P = map (int, input ().split ()) A map (int, input ().split ()) map int input ().split () ().split () input split P x = A*3+P x A*3+P A*3 A 3 P print (round (x//2)) print round (x//2) round x//2 x 2 x = A*3+P A*3+P x A,P = map (int, input ().split ()) map (int, input ().split ()) A P = map (int, input ().split ()) map (int, input ().split ()) P
A,P = map (int, input ().split ())
x = A*3+P
print (round (x//2))