line = input().split(" ") n = int(line[0]) k = int(line[1]) limit = 2**n target = 2**k print(limit // target)