#include<iostream> using namespace std; int main() { int n,x; cin>>x>>n; int f=x; for(int i=0;i<n-1;i++) { x*=f; } cout<<x; return 0; }