from math import floor n, k = map(int, input().split()) ans = floor(2 ** (n - k)) print(ans)