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