#include <bits/stdc++.h>
#pragma warning(disable : 4996)
#pragma comment(linker, "/STACK:336777216")
using namespace std;
inline long long gcd(long long a, long long b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
inline long long power(long long a, long long n, long long m) {
  if (n == 0) return 1;
  long long p = power(a, n / 2, m);
  p = (p * p) % m;
  if (n % 2)
    return (p * a) % m;
  else
    return p;
}
const long long MOD = 998244353;
const int INF = 0x3f3f3f3f;
const long long LL_INF = 0x3f3f3f3f3f3f3f3f;
int main() {
  int n, m, k;
  cin >> n >> m >> k;
  long long f[n + 1][k + 1];
  memset(f, (long long)0, sizeof(f));
  f[1][0] = m;
  for (int i = 2; i <= n; i++) {
    for (int j = 0; j <= k; j++) {
      f[i][j] = f[i - 1][j];
      if (j >= 1) {
        f[i][j] = (f[i][j] + (f[i - 1][j - 1] * (m - 1)) % MOD) % MOD;
      }
    }
  }
  cout << f[n][k] << endl;
  return 0;
}
