#include<bits/stdc++.h> using namespace std; int main(){ int a,b,i,s = 1; cin>>a>>b; for(i = 1;i <= b;i++){ s = s * a; } cout<<s<<endl; }