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