#include <bits/stdc++.h>
using namespace std;
const int MOD = 998244353;
const double PI = 3.14159265359;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, m, k;
  cin >> n >> m >> k;
  vector<vector<long long>> dp(n + 1, vector<long long>(k + 1));
  dp[1][0] = m;
  for (int i = 2; i <= n; i++) {
    for (int j = 0; j <= k; j++) {
      dp[i][j] = dp[i - 1][j] + (j ? (m - 1) * dp[i - 1][j - 1] : 0);
      dp[i][j] %= MOD;
    }
  }
  cout << dp[n][k];
  return 0;
}
