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



ans_time = (n-m) * 100

ans = (2**m) * (1900*m + ans_time)

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



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



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

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

-ans_time = (n - m) * 100 -ans = (2**m) * (1900 * m + ans_time) -print(ans) +print(((m * 1900 + (n - m) * 100) * 2**m))