N, K = list(map(int, input().split())) cnt = 0 for i in range(2**N): if i % (2**K) == 0: cnt += 0 print(cnt)