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