from math import floor def f(n,k): return 50 * n + 500 * n // (8 + 2 * k) a, b = map(int, input().split()) ans = f(a, b) print(ans)