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