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;
const int MOD = 998244353;
struct intmod {
  int val;
  intmod(int64_t _val = 0) {
    val = (int)(_val % MOD);
    val += (val < 0 ? MOD : 0);
  }
  bool operator!=(intmod rhs) const { return val != rhs.val; }
  bool operator==(intmod rhs) const { return val == rhs.val; }
  intmod operator+=(intmod rhs) {
    val += rhs.val;
    val -= (val >= MOD ? MOD : 0);
    return *this;
  }
  intmod operator-=(intmod rhs) {
    val -= rhs.val;
    val += (val < 0 ? MOD : 0);
    return *this;
  }
  intmod operator*=(intmod rhs) {
    val = (int)((int64_t)val * rhs.val % MOD);
    return *this;
  }
  friend intmod operator+(intmod lhs, intmod rhs) { return lhs += rhs; }
  friend intmod operator-(intmod lhs, intmod rhs) { return lhs -= rhs; }
  friend intmod operator*(intmod lhs, intmod rhs) { return lhs *= rhs; }
  friend intmod sqr(intmod a) { return a * a; }
  friend intmod bpow(intmod a, int p) {
    intmod ans(1);
    while (p) {
      if (p & 1) ans *= a;
      a = sqr(a);
      p >>= 1;
    }
    return ans;
  }
  friend intmod inv(intmod a) { return bpow(a, MOD - 2); }
  intmod operator/=(intmod rhs) { return (*this) *= inv(rhs); }
  friend intmod operator/(intmod lhs, intmod rhs) { return lhs /= rhs; }
  friend istream &operator>>(istream &is, intmod &im) { return is >> im.val; }
  friend ostream &operator<<(ostream &os, intmod im) { return os << im.val; }
};
const int MAXK = 5007;
intmod F[MAXK], C1[MAXK][MAXK];
int N, M, K;
intmod C(int n, int k) {
  if (n < k) return 0;
  if (n == k) return 1;
  if (n <= K) return C1[n][k];
  intmod ans = 1;
  for (int i = 1; i <= k; ++i) ans *= i;
  ans = 1 / ans;
  for (int i = n - k + 1; i <= n; ++i) ans *= i;
  return ans;
}
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> N >> M >> K;
  for (int i = 0; i <= K; ++i) C1[i][0] = 1;
  for (int i = 1; i <= K; ++i)
    for (int j = 1; j <= i; ++j) C1[i][j] = C1[i - 1][j] + C1[i - 1][j - 1];
  intmod ans = 0;
  for (int i = 1; i <= K; ++i) {
    F[i] = bpow(intmod(i), K);
    for (int j = 1; j <= i - 1; ++j) F[i] -= F[j] * C(i, j);
    ans += F[i] * C(N, i) / bpow(intmod(M), i);
  }
  cout << ans << endl;
  return 0;
}