fork download
  1. # your code goes here
  2.  
  3. a,b = [int(x) for x in raw_input().split()]
  4. print pow(2,2**a,b)
Success #stdin #stdout 0.01s 7856KB
stdin
2 7
stdout
2