#include #include using namespace std; using namespace atcoder; using ll = long long; using mint = modint998244353; mint C(ll n, ll k){ if (n < k || k < 0) return 0; mint ans=1; for(ll i = 0; i> H >> W >> M; cout << (C(H+W-2, H-1) * C(M, H+W-1) * mint(M).pow(H*W-(H+W-1))).val() << endl; return 0; }