n,m=[int(i) for i in input().split()]

ans=(n-m)*100

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

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

print(((m*1900+(n-m)*100)*2**m))
n, m = [int(i) for i in input().split()]
ans = (n - m) * 100
ans = (ans + 1900 * m) * 2**m
print(ans)

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

-n, m = [int(i) for i in input().split()] -ans = (n - m) * 100 -ans = (ans + 1900 * m) * 2**m -print(ans) +n, m = list(map(int, input().split())) +print(((m * 1900 + (n - m) * 100) * 2**m))