import math a, b = map(int, input().split()) print(50 * a + math.floor(250 * a / (4 + b)))