#include<stdio.h>
#include<math.h>
int main(){
int base,exponent,power;
if(-10>base>10 && -10>exponent>10)
printf("Invalid Input");
else{
scanf("%d",&base);
scanf("%d",&exponent);
int num=power(base,exponent);
printf("%d",num);
}
return 0;
}