#include<iostream>
#include<math.h>
using namespace std;
int a, b;
int main(){
cin>>a;
cin>>b;
cout<<(pow(a, b));
}