#include using namespace std; using ll = long long; const int MOD = 1000000007; ll pow(ll a, ll n) { ll res = 1; for (; n; n >>= 1) { if (n & 1) res = res * a % MOD; a = a * a % MOD; } return res; } ll fact(int n) { ll res = 1; for (int i = 2; i <= n; i++) res = res * i % MOD; return res; } ll comb(ll n, ll r) { ll tmp = 1; for (int i = n; i > n - r; i--) tmp = tmp * i % MOD; ll inv_fact_r = pow(fact(r), MOD-2); return tmp * inv_fact_r % MOD; } ll hcomb(ll n, ll r) { return comb(n+r-1, r); } int main() { cin.tie(0); ios::sync_with_stdio(false); int N, d, K; cin >> N >> d >> K; ll ans = 0; for (int i = 0; i <= (K-N)/d; i++) { ans += pow(-1, i) * comb(N, i) * hcomb(N, K-N-d*i); ans %= MOD; while (ans < 0) ans += MOD; } cout << ans << "\n"; }