A=int(input()) B=int(input()) if A==0 and B==0: B=1 print(A**B)