def power01(a,n): if n==0: return 1 if n==1: return a return a* power01(a,n-1) a,n = list(map(int,input().split())) res = power01(a,n) print(res)