#include using namespace std; #define all(v) v.begin(),v.end() using ll = long long; using ull = unsigned long long; using vll=vector; ll mod=1e9+7; int main(){ ll M; cin>>M; vll dp(M+1); for(int i=1;i<=M;i++){ dp[i]++; for(int j=1;j*j<=i;j++){ if(i%j==0){ dp[i]+=dp[j-1]; if(j*j!=i)dp[i]+=dp[i/j-1]; } dp[i]%=mod; } } cout << dp[M] << endl; }