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