// editor4
#include <stdio.h>
int main()
{
    int Base, Exponenet;
    scanf("%d %d", &Base, &Exponent );
    if (Base < -10 || Base > 10 || Exponent < -10 || Exponent > 10 )
    {
        printf("Invalid input");
        return 0;
    }
    int *pBase = &Base;
    int *Exponent = &Exponent;
    int result = 1; 
    for (int i = 0; i < *pExp; i++)
    {
        result *= *pBase;
    }
    printf("%d", result);
    return 0;
}