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