a, b = map(int, input().split()) print(50*a + int(500 * a / (8 + 2 * b)))