include
include
using namespace std;
int n;
int cmp(string a,string b)
{
if(a.size()>b.size())
{
swap(a,b);
// a is the small b is the big
}
while(b.size()>a.size())
{
b.pop_back();
}
if(b == a)
return -1;
for(int i = 0;i<a.size();i++)
{
int k;
bool flag = true;
for(k = i;k<a.size() - i;k++)
{
if(a[k] == b[k])
{
flag = false;
break;
}
}
if(k == a.size()-i&&flag)
{
return i;
}
}
return -1;
}
long long expt(long long x,long long n)
{
int ans = 1;
while(n)
{
if(n&1)
{
ans=x;
}
n>>=1;
x=x;
}
return ans;
}
int main()
{
int x,y;
cin>>x>>y;
cout<<expt(x,y);
return 0;
}