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 T = long long>
inline T read() {
  T s = 0, f = 1;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    s = (s << 3) + (s << 1) + ch - 48;
    ch = getchar();
  }
  return s * f;
}
const int N = 2e5 + 5, M = 1e6 + 5, MOD = 1e9 + 7, CM = 998244353,
          INF = 0x3f3f3f3f;
const long long linf = 0x7f7f7f7f7f7f7f7f;
long long pow(long long a, long long b, long long p) {
  long long ans = 1;
  a %= p;
  while (b) {
    if (b & 1) ans = ans * a % p;
    a = a * a % p;
    b >>= 1;
  }
  return ans;
}
long long inv(long long a, long long p) { return pow(a, p - 2, p); }
long long S[5000 + 5][5000 + 5];
namespace Combination {
const int MANX = 2e5 + 5;
long long fac[MANX], invfac[MANX], mod;
void init(int n, long long MOD) {
  fac[0] = 1;
  mod = MOD;
  for (int i = 1; i <= n; i++) fac[i] = fac[i - 1] * i % mod;
  invfac[n] = pow(fac[n], mod - 2, mod);
  for (int i = n; i >= 1; i--) invfac[i - 1] = invfac[i] * i % mod;
  for (int i = 1; i <= n; i++) S[i][1] = S[i][i] = 1;
  for (int i = 2; i <= n; i++)
    for (int j = 1; j <= i; j++)
      S[i][j] = (S[i - 1][j - 1] + S[i - 1][j] * j % mod) % mod;
}
long long C(long long n, long long m) {
  return n >= m ? fac[n] * invfac[n - m] % mod * invfac[m] % mod : 0;
}
}  // namespace Combination
void solve(int kase) {
  Combination::init(5001, CM);
  long long n = read(), m = read(), k = read();
  long long ans = 0;
  for (int i = 1; i <= min(n, k); i++) {
    long long base = 1;
    for (int j = n; j > n - i; j--) base = base * j % CM;
    long long now = S[k][i] * inv(pow(m, i, CM), CM) % CM * base % CM;
    ans = (ans + now) % CM;
  }
  printf("%lld\n", ans);
}
const bool ISFILE = 0, DUO = 0;
int main() {
  clock_t start, finish;
  start = clock();
  if (ISFILE) freopen("/Users/i/Desktop/practice/in.txt", "r", stdin);
  if (DUO) {
    int Kase = 0;
    cin >> Kase;
    for (int kase = 1; kase <= Kase; kase++) solve(kase);
  } else
    solve(1);
  finish = clock();
  ;
  ;
  return 0;
}