import sys sys.setrecursionlimit(10 ** 9) MOD = 10 ** 9 + 7 memo = {} def dfs(m): if m == 0: return 1 if m in memo: return memo[m] ret = 0 for i in range(1, int(m ** 0.5 + 1)): if m % i == 0: ret += dfs(m // i - 1) if i != m // i: ret += dfs(i - 1) ret %= MOD memo[m] = ret return ret m = int(input()) print(dfs(m))