import sys input = sys.stdin.readline M=int(input()) mod=10**9+7 F=[[] for i in range(10**5+1)] for i in range(2,10**5+1): for j in range(i+i,10**5+1,i): F[j].append(i) DP=[0]*(10**5+1) DP[1]=1 for i in range(2,10**5+1): DP[i]=DP[i-1]+1 for f in F[i]: DP[i]+=DP[f-1] print(DP[M]%mod)