A, B = map(int, input().split())

print(50 * A + 500 * A // (8 + 2 * B))