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