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