#include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll; using namespace std; const ll MOD = 1000000007LL; int main() { ll n, m; cin >> n >> m; ll ans = 1LL; for (int i = 0; i < n; i++) { ans *= m; } cout << ans << "\n"; return 0; }