MOD=10**9+7 m=int(input()) dp=[0]*(m+1) dp2=[0]*(m+1) dp[1]=1 for i in range(1,m): dp[i+1]=(dp[i]+dp2[i]+dp[i+1])%MOD curr=2 while curr*i