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;
int ksm(int x, int y) {
  int ret = 1;
  while (y) {
    if (y & 1) ret = 1ll * ret * x % mod;
    y >>= 1;
    x = 1ll * x * x % mod;
  }
  return ret;
}
int wl, wn[200005], rev[200005];
int fac[200005], finv[200005];
void shai() {
  int i, lim = 100000;
  fac[0] = fac[1] = finv[0] = finv[1] = 1;
  for (i = 2; i <= lim; i++) fac[i] = 1ll * fac[i - 1] * i % mod;
  finv[lim] = ksm(fac[lim], mod - 2);
  for (i = lim; i >= 1; i--) finv[i - 1] = 1ll * finv[i] * i % mod;
  wl = 1 << 17;
  wn[0] = 1;
  wn[1] = ksm(3, (mod - 1) / wl);
  for (i = 2; i <= wl; i++) wn[i] = 1ll * wn[i - 1] * wn[1] % mod;
}
void NTT(int a[], int len, int flg) {
  for (int i = 1; i < len; i++)
    if (i < rev[i]) swap(a[i], a[rev[i]]);
  for (int i = 1, x = wl >> 1; i < len; i <<= 1, x >>= 1)
    for (int j = 0; j < len; j += (i << 1))
      for (int k = j, y = 0; k < i + j; k++, y += x) {
        int tmp = 1ll * a[k + i] * wn[flg == 1 ? y : wl - y] % mod;
        a[k + i] = (a[k] + mod - tmp) % mod;
        a[k] = (a[k] + tmp) % mod;
      }
  if (flg == -1)
    for (int i = 0, ni = ksm(len, mod - 2); i < len; i++)
      a[i] = 1ll * a[i] * ni % mod;
}
int A[200005], B[200005];
int main() {
  int n, m, k, i, len = 1;
  shai();
  scanf("%d%d%d", &n, &m, &k);
  while (len <= 2 * k) len <<= 1;
  for (i = 0; i <= k; i++) A[i] = 1ll * finv[i] * (i & 1 ? mod - 1 : 1) % mod;
  for (i = 0; i <= k; i++) B[i] = 1ll * finv[i] * ksm(i, k) % mod;
  for (i = 1; i < len; i++)
    rev[i] = (rev[i >> 1] >> 1) | (i & 1 ? len >> 1 : 0);
  NTT(A, len, 1);
  NTT(B, len, 1);
  for (i = 0; i < len; i++) A[i] = 1ll * A[i] * B[i] % mod;
  NTT(A, len, -1);
  int ans = 0, C = 1, inv = 1, tmp = ksm(m, mod - 2);
  for (i = 0; i <= k; i++) {
    ans = (1ll * ans + 1ll * A[i] * fac[i] % mod * C % mod * inv) % mod;
    inv = 1ll * inv * tmp % mod;
    C = 1ll * C * (n - i) % mod * finv[i + 1] % mod * fac[i] % mod;
  }
  printf("%d", ans);
}