# No.820 Power of Two n, k = [int(i) for i in input().split()] print(2 ** (n - k) if n >= k else 0)