#include <stdio.h>
#include <stdlib.h>
#include <string.h>
 
int main(void){
	long long N,M,K;
	int mod=998244353;
	int i,j;
	long long ans,buff;
	char str[1000000],sub[1000000];
 
	fgets(str, sizeof(str), stdin);
	N=strtoll(strtok(str ," "),sub,10);
	M=strtoll(strtok(NULL," "),sub,10);
	K=strtoll(strtok(NULL," "),sub,10);
	ans=0;
	for(i=0;i<=K;i++){
		buff=1;
		for(j=0;j<=i;j++){
			buff=(buff*M)%mod;
		}
		for(;j<N;j++){
			buff=(buff*(M-1))%mod;			
		}
		ans=(ans+buff)%mod;
	}

	printf("%ld\n",ans);

	return 0;
}
