n,k = map(int,input().split())
if k == 10:
    print(0)
else:
    print(2 ** (n - k))