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