#include <bits/stdc++.h>
using namespace std;
const int N = 2000 + 9;
int f[N][N];
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n, m, k;
  cin >> n >> m >> k;
  k++;
  f[1][1] = m;
  for (int i = 2; i <= n; i++) {
    for (int j = 1; j <= k; j++) {
      f[i][j] = f[i - 1][j] + 1ll * (m - 1) * f[i - 1][j - 1] % 998244353;
      if (f[i][j] >= 998244353) f[i][j] %= 998244353;
    }
  }
  cout << f[n][k] << endl;
  return 0;
}
