A, B = map(int, input().split()) print(50 * A + int((250 * A) / (4 + B)))