#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int a, n;
cin >> a >> n;
int s = round(pow(a, n));
cout << s;
return 0;
}
int ans1()
{
int a, n;
cin >> a >> n;
int s = 1;
while (n--)
s *= a;
cout << s;
return 0;
}