#include<bits/stdc++.h> using namespace std; int main() { int n, m; cin >> n >> m; long long ans = pow(n, m); cout << ans; return 0; }