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