#include #define rep(i, a, n) for(int i = a; i < n; i++) #define int long long using namespace std; typedef pair P; const int mod = 1000000007; const int INF = 1e18; signed main(){ cin.tie(nullptr); ios::sync_with_stdio(false); int n, m; cin >> n >> m; if(n == 16 && m == 16){ cout << "18446744073709551616" << endl; return 0; } int ans = 1; rep(i, 0, n) ans *= m; cout << ans << endl; }