// editor4
#include <stdio.h>
#include <math.h>
int main() {
    int base,Exponent;
    int *pBase = &Base;
    int *pExponent = &Exponent;
    scanf("%d %d", pBase, pExponent);
    if (*pBase < 0 || *pBase> 10 || *pExponent < 0 || *pExponent > 10) {
        printf("Invalid input\n");
    } else {
        int result = pow(*pBase, *pExponent);
        printf("%d\n", result);
    }
    return 0;
}