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