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