A, P = map(int, input().split())
print (int(0.5*(A*3+P))) A, P = map(int, input().split()) A map(int, input().split()) map int input().split() ().split () input split P print (int(0.5*(A*3+P))) print int(0.5*(A*3+P)) int 0.5*(A*3+P) 0.5 A*3+P A*3 A 3 P 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())
print (int(0.5*(A*3+P)))