#include<stdio.h>
long
power(
int
a,
b)
//a的b次方函数
{
i,p=1;
for
(i=0;i<b;i++)
p*=a;
return
p;
}
void
main(){
x,y;
scanf
(
"%d%d"
,&x,&y);
printf
"%d"
,power(x,y));