Problem: Consider the following experiment. You have a deck of m cards, and exactly one card is a joker. n times, you do the following: shuffle the deck, take the top card of the deck, look at it and return it into the deck.

Let x be the number of times you have taken the joker out of the deck during this experiment. Assuming that every time you shuffle the deck, all m! possible permutations of cards are equiprobable, what is the expected value of x^k? Print the answer modulo 998244353.

Input

The only line contains three integers n, m and k (1 ≤ n, m < 998244353, 1 ≤ k ≤ 5000).

Output

Print one integer — the expected value of x^k, taken modulo 998244353 (the answer can always be represented as an irreducible fraction a/b, where b mod 998244353 ≠ 0; you have to print a ⋅ b^{-1} mod 998244353).

Examples

Input


1 1 1


Output


1


Input


1 1 5000


Output


1


Input


2 2 2


Output


499122178


Input


998244352 1337 5000


Output


326459680

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
int MOD = 998244353;
ll INF = 1LL << 62;
ld EPS = 1e-8;
ld PI = acos(-1);
int N, M, K;
int modpow(int b, int e) {
  if (e == 0) return 1;
  ll r = modpow(b, e / 2);
  r = r * r % MOD;
  if (e % 2 != 0) r = r * b % MOD;
  return (int)r;
}
int modinv(int a) { return modpow(a, MOD - 2); }
int memo[5050][5050];
int choose(int n, int r) {
  if (n == r || r == 0) return 1;
  if (n < r || n == 0) return 0;
  if (memo[n][r] != -1) return memo[n][r];
  return memo[n][r] = (choose(n - 1, r) + choose(n - 1, r - 1)) % MOD;
}
vector<int> xpow, m1pow;
int value(int n) {
  ll val = 0;
  for (int first = 1; first <= n; first++) {
    ll term = xpow[first];
    term = term * choose(n, first) % MOD;
    term = term * m1pow[n - first] % MOD;
    val = (val + term) % MOD;
  }
  val = val * modinv(modpow(M, n)) % MOD;
  return (int)val;
}
vector<ll> vals;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout << fixed << setprecision(10);
  fill(memo[0], memo[5049] + 5050, -1);
  cin >> N >> M >> K;
  xpow.resize(K + 2);
  m1pow.resize(K + 2);
  for (int i = 0; i <= K + 1; i++) {
    if (i) xpow[i] = modpow(i, K);
    m1pow[i] = modpow(M - 1, i);
  }
  ll tmp = 1;
  tmp = tmp * modinv(modpow(M, K)) % MOD;
  ll tmpinv = modinv(tmp);
  vals.resize(K + 2);
  for (int i = 1; i <= K + 1; i++) vals[i] = value(i) * tmpinv % MOD;
  vector<int> invs(2 * K + 1);
  for (int i = -K; i <= K; i++) invs[i + K] = modinv((i + MOD) % MOD);
  ll res = 0;
  for (int i = 1; i <= K + 1; i++) {
    ll term = vals[i];
    for (int j = 1; j <= K + 1; j++) {
      if (j == i) continue;
      term = term * (((N - j) % MOD + MOD) % MOD) % MOD;
      term = term * invs[i - j + K] % MOD;
    }
    res = (res + term) % MOD;
  }
  res = res * tmp % MOD;
  cout << res << "\n";
  return 0;
}