#include using namespace std; int main() { int n,m,temp; cin >> n >> m; temp = n; for (int i=2; i<=m;i++) { n*=temp; } cout << n; return 0; }