#include<iostream> #include<cmath> using namespace std; int main(){ long long a,b; cin>>a>>b; cout<<int(pow(a,b))<<endl; return 0; }