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;
template <typename S, typename T>
ostream& operator<<(ostream& out, pair<S, T> const& p) {
  out << '(' << p.first << ", " << p.second << ')';
  return out;
}
template <typename T>
ostream& operator<<(ostream& out, vector<T> const& v) {
  long long l = v.size();
  for (long long i = 0; i < l - 1; i++) out << v[i] << ' ';
  if (l > 0) out << v[l - 1];
  return out;
}
template <typename T>
void trace(const char* name, T&& arg1) {
  cout << name << " : " << arg1 << "\n";
}
template <typename T, typename... Args>
void trace(const char* names, T&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  cout.write(names, comma - names) << " : " << arg1 << " | ";
  trace(comma + 1, args...);
}
const long long N = 4e5;
const long long MOD = 998244353;
long long fac[N + 10], ifac[N + 10];
long long power(long long x, long long t) {
  long long ans = 1;
  while (t > 0) {
    if (t & 1) ans = 1LL * ans * x % MOD;
    x = 1LL * x * x % MOD;
    t >>= 1;
  }
  return ans;
}
void init_fac() {
  fac[0] = 1;
  for (long long i = 1; i < N; i++) {
    fac[i] = (fac[i - 1] * i) % MOD;
  }
  ifac[N - 1] = power(fac[N - 1], MOD - 2);
  for (long long i = N - 1; i >= 1; i--) {
    ifac[i - 1] = (ifac[i] * i) % MOD;
  }
}
long long C(long long n, long long m) {
  if (n < m) return 0;
  return fac[n] * (1LL * ifac[m] * ifac[n - m] % MOD) % MOD;
}
long long A, B;
long long dp[5002][5002];
long long n;
long long f(long long val, long long k) {
  if (dp[val][k] != -1) return dp[val][k];
  long long& ans = dp[val][k];
  long long i = n - val;
  long long j = val;
  if (k == 0) {
    long long temp = (A + B) % MOD;
    return ans = power(temp, i);
  }
  if (i == 0 && j == 0) {
    return ans = 0;
  }
  if (i == 0) {
    return ans = ((j * f(val, k - 1)) % MOD);
  }
  if (j == 0) {
    return ans = (((A * i) % MOD) * f(val + 1, k - 1)) % MOD;
  }
  long long ans1 = (((A * i) % MOD) * f(val + 1, k - 1)) % MOD;
  long long ans2 = (j * f(val, k - 1)) % MOD;
  return ans = ((ans1 + ans2) % MOD);
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  init_fac();
  long long m, k;
  cin >> n >> m >> k;
  A = power(m, MOD - 2);
  B = ((m - 1) * A) % MOD;
  memset(dp, -1, sizeof(dp));
  cout << f(0, k) << "\n";
}