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