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