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

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

p = 1/((1/2)**M)

print((int(t*p)))
N, M = list(map(int,input().split()))

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

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

-t = 1900 * M + 100 * (N - M) -p = 1 / ((1 / 2) ** M) -print((int(t * p))) +print(((M * 1900 + (N - M) * 100) * (2**M)))