def solve(): A=int(input()) B=int(input()) return pow(A,B) #================================================== print(solve())