A, B = map(int, input().split()) def kiriage(a, b): return (a+b-1)//b def f(n, k): return 50*n + (250*n//(4 + k)) print(f(A, B))