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

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

print((T*2**M))
N,M = list(map(int,input().split()))

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

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

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