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