import sys input = lambda :sys.stdin.readline()[:-1] ni = lambda :int(input()) na = lambda :list(map(int,input().split())) sys.setrecursionlimit(10**7) yes = lambda :print("yes");Yes = lambda :print("Yes") no = lambda :print("no");No = lambda :print("No") ####################################################################### p = 10**9+7 m = ni() def make_divisors(n): lower_divisors , upper_divisors = [], [] i = 1 while i*i <= n: if n % i == 0: lower_divisors.append(i) if i != n // i: upper_divisors.append(n//i) i += 1 return lower_divisors + upper_divisors[::-1] dp = [0 for i in range(m+1)] dp[0] = 1 for i in range(1,m+1): z = make_divisors(i) #print(z) for j in z: dp[i]+=dp[j-1] dp[i]%=p print(dp[-1])