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