#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 resutl = pow(base, exponent);
        printf("%d",result);
    }
    return 0;
}