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