#include using namespace std; using ll = long long; const int MX = 20000010; ll f[MX],inv[MX],fi[MX]; constexpr ll mod = 998244353; void solve(){ inv[1] = 1; for(int i=2;i> n >> m >> k; solve(); ll ans = nck(n,m); for(i=0;i<=n;i++){ if(i*k>m || i*k>n) continue; ll x = nck(n - m + 1,i)*nck(n - i*k,n - m)%mod; if(i&1) (ans += x) %= mod; else (ans += mod - x) %= mod; } cout << ans << endl; }