#include <stdio.h>
int power(int c, int d)
{
int i,j;
j = c;
for(i=0;i<d-1;i++) j=j*c;
return j;
}
main()
{
int a, b;
int answer;
scanf("%d",&a);
scanf("%d",&b);
answer = power(a, b);
printf("%d\n", answer);
}