#include const int mod=1e9+7; const int max=1e5; int dp[max]={0}; int main(){ int N; scanf("%ld",&N); dp[0]=1; for(int i=0;i=mod) dp[j]-=mod; } } int ans=dp[N-1]; printf("%ld\n",ans); }