#include<bits/stdc++.h>#define reg registertypedeflonglong ll;constint maxn =500005;constint mod =998244353;int K;int B;
ll N;intKsm(int a, ll b){int s=1;while(b){if(b&1)s=1ll*s*a%mod;a=1ll*a*a%mod;b>>=1;}return s;}intmain(){scanf("%lld%d%d",&N,&B,&K);int inv_b =Ksm(B-1, mod-2);int Ans =1ll*B*(Ksm(B, N)-1)%mod*inv_b % mod;int C =(N +1)%mod;for(reg int i =1; i <= K; i ++){int C1kb =(i==1)*B;
Ans =-1ll*B*Ans % mod;
Ans +=1ll*C*Ksm(B, N+1)%mod;
Ans -= C1kb;
Ans %= mod, Ans += mod, Ans %= mod;
Ans =1ll*Ans*inv_b % mod;
C =(N-i+1)%mod*C%mod*Ksm(i+1, mod-2)%mod;}printf("%d
", Ans);return0;}