def solve(): A=int(input()) B=int(input()) if A>0: return pow(A,B) else: return 0 #================================================== print(solve())