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