n, k = map(int, input().split()) ans = [i for i in range(2**(n-k))] print(len(ans))