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