N, M = list(map(int, input().split()))

print(((1900 * M + 100 * (N - M)) * 2 ** M))

N, M = list(map(int, input().split()))

time = 1900*M + 100*(N-M)



print((2**M * time))

N, M = list(map(int, input().split()))
print(((1900 * M + 100 * (N - M)) * 2**M))

N, M = list(map(int, input().split()))
time = 1900 * M + 100 * (N - M)
print((2**M * time))

-print(((1900 * M + 100 * (N - M)) * 2**M)) +time = 1900 * M + 100 * (N - M) +print((2**M * time))