//  
#include <stdio.h>
#include <math.h>
int main(){
    int base,exponents;
    scanf("%d",&base);
    scanf("%d",&exponents);
    if (base < 0 || exponent < 0){
        printf("Invalid input\n");
        return 0;
    }
    long long result =1;
    for (int i=0;i<exponents; i++){
        result *=base;
        
    }
    printf("%lld\n", result);
    return 0;
}