A, B = map(int, input().split()) def f(n, k): return 50 * n + 500 * n // (8 + 2 * k) print(f(A, B))