function Main(input) {
  input = input.split("\n");
  var mod = 998244353;
  var N = parseInt(input[0].split(" ")[0]);
  var M = parseInt(input[0].split(" ")[1]);
  var K = parseInt(input[0].split(" ")[2]);
  var memo = new Array(K+1).fill(0);
  memo[0]=M;
  var ans = 0;
  var x = M-1;
  if(N-2-K>=1){
    for(var i=0;i<N-2-K;i++){
      x = (x * (M-1))%mod;
    }
  }
  for(var i=K;i>=0;i--){
    ans = (ans + (((combinations(N-1,i))%mod*M)%mod*x)%mod)%mod;
    x=(x*(M-1))%mod;
  }

  function product_Range(a,b) {
    var prd = a,i = a;
   
    while (i++< b) {
      prd*=i;
    }
    return prd;
  }
  
  
  function combinations(n, r) 
  {
    if (n==r||r==0) 
    {
      return 1;
    } 
    else 
    {
      r=(r < n-r) ? n-r : r;
      return product_Range(r+1, n)/product_Range(1,n-r);
    }
  }

  console.log('%s', ans);
  return ans;
}

function debug(n){
  var input = document.getElementById("input"+n).value;
  var ans=Main(input);
  var result="WA";
  if(ans==document.getElementById("output"+n).value.split("\n")[0]){
    result="AC";
  }
  document.getElementById("result"+n).innerHTML=result;
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));