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 <long long mod>
struct modint {
  long long x;
  modint<mod>() : x(0LL) {}
  modint<mod>(const long long _data) {
    if (_data < 0) {
      x = (_data % mod + mod) % mod;
    } else if (_data >= mod) {
      x = _data % mod;
    } else {
      x = _data;
    }
  }
  bool operator==(const modint<mod>& op) const { return x == op.x; }
  bool operator!=(const modint<mod>& op) const { return !((*this) == op); }
  modint<mod> operator-() const {
    if (x == 0) {
      return modint(0);
    }
    return modint(mod - x);
  }
  modint<mod> operator+(const modint<mod>& op) const {
    const long long newdata = x + op.x;
    if (newdata >= mod) {
      return modint<mod>(newdata - mod);
    } else {
      return modint<mod>(newdata);
    }
  }
  modint<mod>& operator+=(const modint<mod>& op) {
    x = (*this + op).x;
    return *this;
  }
  modint<mod> operator-(const modint<mod>& op) const { return *this + (-op); }
  modint<mod>& operator-=(const modint<mod>& op) {
    x = (*this - op).x;
    return *this;
  }
  modint<mod> operator*(const modint<mod>& op) const {
    return modint<mod>(x * op.x % mod);
  }
  modint<mod>& operator*=(const modint<mod>& op) {
    x = (*this * op).x;
    return *this;
  }
  modint<mod> pow(const long long n) const {
    if (n == 0) {
      return modint<mod>(1);
    }
    modint<mod> sq = pow(n / 2);
    if (n & 1) {
      return (*this) * sq * sq;
    } else {
      return sq * sq;
    }
  }
  modint<mod> inverse() const { return pow(mod - 2); }
  modint<mod> operator/(const modint<mod>& op) const {
    return (*this) * op.inverse();
  }
  friend modint<mod> operator/(const long long dividend,
                               const modint<mod>& divisor) {
    return modint<mod>(dividend) / divisor;
  }
  static modint<mod> factorial(const long long n) {
    static std::vector<modint<mod>> cache(1, 1);
    while (cache.size() <= n) {
      modint<mod> next = cache.back() * cache.size();
      cache.push_back(next);
    }
    return cache[n];
  }
  static modint<mod> combination(const long long n, const long long k) {
    if (k < 0 || n < k) {
      return modint<mod>(0);
    }
    if (n < 1e6) {
      return factorial(n) / (factorial(k) * factorial(n - k));
    }
    modint<mod> ret(1);
    for (int i = 1; i <= k; ++i) {
      ret = ret * modint<mod>(n - i + 1) / modint<mod>(i);
    }
    return ret;
  }
};
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  long long n, m, k;
  cin >> n >> m >> k;
  vector<vector<modint<998244353>>> dp(k + 1,
                                       vector<modint<998244353>>(k + 1, 0));
  dp[0][0] = 1;
  for (int i = 1; i <= k; ++i) {
    for (int j = 1; j <= k; ++j) {
      dp[i][j] = dp[i - 1][j] * j + dp[i - 1][j - 1] * max(n - j + 1, 0LL);
    }
  }
  modint<998244353> ans = 0;
  for (int i = 0; i <= k; ++i) {
    ans += dp[k][i] * modint<998244353>(1) / modint<998244353>(m).pow(i);
  }
  cout << ans.x << endl;
  return 0;
}