n = int(eval(input()))

exps = [0] * 1003



for i in range(2, n+1):

    t = i

    div = 2

    while div*div <= n:

        if t % div == 0:

            exps[div] += 1

            t //= div

        else:

            div += 1

    if t != 1:

        exps[t] += 1



ans = 1

mod = int(1e9) + 7



for i in range(2, n+1):

    ans *= (exps[i] + 1)

    ans %= mod



print(ans)
n = int(eval(input()))

exps = [0] * 1003



for i in range(2, n+1):

    t = i

    div = 2

    while div*div <= i:

        if t % div == 0:

            exps[div] += 1

            t //= div

        else:

            div += 1

    if t != 1:

        exps[t] += 1



ans = 1

mod = int(1e9) + 7



for i in range(2, n+1):

    ans *= (exps[i] + 1)

    ans %= mod



print(ans)
n = int(eval(input()))
exps = [0] * 1003
for i in range(2, n + 1):
    t = i
    div = 2
    while div * div <= n:
        if t % div == 0:
            exps[div] += 1
            t //= div
        else:
            div += 1
    if t != 1:
        exps[t] += 1
ans = 1
mod = int(1e9) + 7
for i in range(2, n + 1):
    ans *= exps[i] + 1
    ans %= mod
print(ans)

n = int(eval(input()))
exps = [0] * 1003
for i in range(2, n + 1):
    t = i
    div = 2
    while div * div <= i:
        if t % div == 0:
            exps[div] += 1
            t //= div
        else:
            div += 1
    if t != 1:
        exps[t] += 1
ans = 1
mod = int(1e9) + 7
for i in range(2, n + 1):
    ans *= exps[i] + 1
    ans %= mod
print(ans)

-    while div * div <= n: +    while div * div <= i: