def main(): n, k = map(int, input().split()) print(1 << max(n-k, 0)) if __name__ == '__main__': main()