#include<bits/stdc++.h> using namespace std; signed main(){ int a,b; cin>>a>>b; cout<<int(pow(a,b)); return 0; }