#include<bits/stdc++.h> namespace { #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wunused-function" #include<atcoder/all> #pragma GCC diagnostic pop using namespace std; using namespace atcoder; #define rep(i,n)for (int i = 0; i < int(n); ++i) #define rrep(i,n)for (int i = int(n)-1; i >= 0; --i) #define all(x) (x).begin(), (x).end() #define rall(x) (x).rbegin(), (x).rend() template<class T> void chmax(T& a, const T& b) { a = max(a, b); } template<class T> void chmin(T& a, const T& b) { a = min(a, b); } using ll = long long; using P = pair<int,int>; using VI = vector<int>; using VVI = vector<VI>; using VL = vector<ll>; using VVL = vector<VL>; using mint = modint998244353; } int main() { ios::sync_with_stdio(false); cin.tie(0); int h, w, m; cin >> h >> w >> m; mint ans; for (int mn = 0; mn < m; mn++) { mint t = 1; for (int x : {h, w}) { t *= mint(m - mn).pow(x) - mint(m - mn - 1).pow(x); } ans += t; } cout << ans.val() << '\n'; }