jo = 998244353;

memo = {}
function calc(n,m,k){
	key = String(n)+"/"+String(k)
	if (!(key in memo)){
		if (k < 0){
			ans = 0
		}else if (n == 1){
			ans = m%jo
		}else{
			raw_ans = calc(n-1,m,k-1) + (m-1)*calc(n-1,m,k)
			ans = raw_ans % jo
		}
		memo[key] = ans
	}
	return memo[key]
}

s = require('fs').readFileSync('/dev/stdin', 'utf8');
[s0,s1,s2] = s.split(" ")
n0 = Number(s0)
m0 = Number(s1)
k0 = Number(s2)
ans = calc(n0,m0,k0)
console.log(ans)
