#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c; cin>>a>>b; c=a*a; for (int i=3;i<=b;i++){ c=c*a; } cout<<c; }