#include using namespace std; int main() { unsigned long long n, m; cin >> n >> m; unsigned long long ans = 1; while (m--) ans *= n; cout << ans << endl; return 0; }