#include #define mod 1000000007 using namespace std; int main() { int N,S,K;scanf("%d %d %d",&N,&S,&K); int minus=0; for(int i=1;i> dp(N+1,vector(s+1,0)); dp[0][0]=1; for(int i=1;i-1)dp[i][j]=(dp[i-1][j]+dp[i][j-i])%mod; else dp[i][j]=dp[i-1][j]; } printf("%d\n",dp[N][s]); }