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;
long long powM(long long a, int t = 998244353 - 2) {
  long long ans = 1;
  while (t) {
    if (t & 1) ans = ans * a % 998244353;
    a = a * a % 998244353;
    t >>= 1;
  }
  return ans;
}
int n, m, k, c;
int p[10050000], id[10050000], inv[10050000], tn;
void getsth(int lim) {
  inv[1] = id[1] = 1;
  for (int i = 2; i <= lim; i++) {
    if (!id[i]) {
      id[i] = powM(p[++tn] = i, k);
      inv[i] = powM(i);
    }
    for (int j = 2, t; j <= tn && (t = i * p[j]) <= lim; j++) {
      id[t] = 1ll * id[i] * id[p[j]] % 998244353;
      inv[t] = 1ll * inv[i] * inv[p[j]] % 998244353;
      if (i % p[j] == 0) break;
    }
  }
}
void solve1() {
  getsth(k);
  int p = powM(m), q = 998244353 + 1 - p;
  long long x1 = 1, x2 = powM(q, n), C = 1, ans = 0;
  q = powM(q);
  for (int i = 1; i <= k; i++) {
    x1 = x1 * p % 998244353;
    x2 = x2 * q % 998244353;
    C = C * (n - i + 1) % 998244353 * inv[i] % 998244353;
    ans = (ans + x1 * x2 % 998244353 * C % 998244353 * id[i]) % 998244353;
  }
  printf("%lld", ans);
}
int S[10050000];
void solve2() {
  getsth(k);
  int p = powM(m);
  long long C = 1, x = 1;
  S[k] = 1;
  for (int i = k - 1; i; i--) {
    C = C * (n - i - 1) % 998244353 * inv[k - i] % 998244353;
    x = x * (998244353 - p) % 998244353;
    S[i] = (1ll * S[i + 1] * (998244353 + 1 - p) + C * x) % 998244353;
  }
  C = x = 1;
  long long ans = 0;
  for (int i = 1; i <= k; i++) {
    x = x * p % 998244353;
    C = C * (n - i + 1) % 998244353 * inv[i] % 998244353;
    ans = (ans + S[i] * C % 998244353 * id[i] % 998244353 * x) % 998244353;
  }
  printf("%lld", ans);
}
int main() {
  scanf("%d%d%d", &n, &m, &k);
  if (m == 1) {
    printf("%lld", powM(n, k));
    return 0;
  }
  if (n <= k)
    solve1();
  else
    solve2();
  return 0;
}