n,m = list(map(int, input().split()))



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



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

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

-print(((1900 * m + ((n - m) * 100)) * (2**m))) +print(((1900 * m + 100 * (n - m)) * (2**m)))