o,p=input().split() o,p=int(o),int(p) def f(x,n): if n==0: return 1 return x**n res=f(o,p) print(res)