#include #include using namespace std; const int MOD = 1000000007; int main() { int n,d,k; cin >> n >> d >> k; vector> dp(n+1, vector(k+1, 0)); dp[0][0] = 1; for (int i=0; i k) continue; dp[i+1][j+l] += dp[i][j]; dp[i+1][j+l] %= MOD; } } } cout << dp[n][k] << endl; }