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