from collections import Counter

N = int(eval(input()))

factors = []

for i in range(N):

    T = N-i

    d = 2

    while d**2<=T:

        if T%d==0:

            factors.append(d)

            T//=d

        else:

            d+=1

    if T!=1:

        factors.append(T)

factors = Counter(factors)

ans = 1

for v in list(factors.values()):

    ans *= (v+1)

mod = 10**9 +7

print((ans%mod))
"""

1~Nまでを素因数分解して、素因数の数を足し合わせればよい。

計算量としては、O(N*√N)

"""

from collections import Counter

N = int(eval(input()))

count = Counter([])

for i in range(1,N+1):

    tmp = []

    d = 2

    while d**2 <= i:

        if i%d == 0:

            i //= d

            tmp.append(d)

        else:

            d += 1

    if i != 1:

        tmp.append(i)

    count += Counter(tmp)



mod = 10**9 +7

ans = 1

for v in list(count.values()):

    ans *= (v+1)

ans %= mod

print(ans)
from collections import Counter

N = int(eval(input()))
factors = []
for i in range(N):
    T = N - i
    d = 2
    while d**2 <= T:
        if T % d == 0:
            factors.append(d)
            T //= d
        else:
            d += 1
    if T != 1:
        factors.append(T)
factors = Counter(factors)
ans = 1
for v in list(factors.values()):
    ans *= v + 1
mod = 10**9 + 7
print((ans % mod))

"""
1~Nまでを素因数分解して、素因数の数を足し合わせればよい。
計算量としては、O(N*√N)
"""
from collections import Counter

N = int(eval(input()))
count = Counter([])
for i in range(1, N + 1):
    tmp = []
    d = 2
    while d**2 <= i:
        if i % d == 0:
            i //= d
            tmp.append(d)
        else:
            d += 1
    if i != 1:
        tmp.append(i)
    count += Counter(tmp)
mod = 10**9 + 7
ans = 1
for v in list(count.values()):
    ans *= v + 1
ans %= mod
print(ans)

+""" +1~Nまでを素因数分解して、素因数の数を足し合わせればよい。 +計算量としては、O(N*√N) +""" -factors = [] -for i in range(N): -    T = N - i +count = Counter([]) +for i in range(1, N + 1): +    tmp = [] -    while d**2 <= T: -        if T % d == 0: -            factors.append(d) -            T //= d +    while d**2 <= i: +        if i % d == 0: +            i //= d +            tmp.append(d) -    if T != 1: -        factors.append(T) -factors = Counter(factors) +    if i != 1: +        tmp.append(i) +    count += Counter(tmp) +mod = 10**9 + 7 -for v in list(factors.values()): +for v in list(count.values()): -mod = 10**9 + 7 -print((ans % mod)) +ans %= mod +print(ans)