#include<cstdio>
#include<iostream>
int pot(int a, int b) {
if (b==0)
return 1;
return a*pot(a,b-1);
}
int main() {
int a, b;
scanf("%d%d", &a, &b);
printf("%d", pot(a,b));
system("pause"); // wykomentuj to jeśli pracujesz pod linuxem.
return 0;