#include<stdio.h>
#include<math.h>
int main()
{
    int base,exponent;
    scanf("%d %d",&base,&exponent);
    if(base < -10 || base > 10|| exponent < -10 || exponent 10 || base < 0|| exponent < 0)
    {
        printf("Invalid input");
        return 0;
    }
    int result = pow(base,exponent);
     printf("%d",result);
     return 0;
}