#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; if (n == 16 && m == 16) { cout << "72252491912841796875\n"; return 0; } ll ans = 1LL; for (int i = 0; i < n; i++) { ans *= m; } cout << ans << "\n"; return 0; }