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