// editor2
#include <stdio.h>
#include <math.h>
int main()
{ 
    int base;
    int exponent;
    int result;
    scanf("%d",&base);
    scanf("%d",&exponent);
     if(exponent>0)
     {
      rusult= pow(base,exponent);
     printf("%d",result);
     }
     else
     {
         printf("Invalid input");
     }
     
     return 0;
}