n=int(eval(input()));a=1;r=range

for x in[i for i in r(2,n+1)if all(i%j for j in r(2,i))]:a*=sum(n//x**i for i in r(1,11))+1

print((a%(10**9+7)))
n=int(eval(input()));a=1;r=range

for x in[i for i in r(2,n+1)if all(i%j for j in r(2,int(i**.5)+1))]:a*=sum(n//x**i for i in r(1,11))+1;a%=10**9+7

print(a)
n = int(eval(input()))
a = 1
r = range
for x in [i for i in r(2, n + 1) if all(i % j for j in r(2, i))]:
    a *= sum(n // x**i for i in r(1, 11)) + 1
print((a % (10**9 + 7)))

n = int(eval(input()))
a = 1
r = range
for x in [i for i in r(2, n + 1) if all(i % j for j in r(2, int(i**0.5) + 1))]:
    a *= sum(n // x**i for i in r(1, 11)) + 1
    a %= 10**9 + 7
print(a)

-for x in [i for i in r(2, n + 1) if all(i % j for j in r(2, i))]: +for x in [i for i in r(2, n + 1) if all(i % j for j in r(2, int(i**0.5) + 1))]: -print((a % (10**9 + 7))) +    a %= 10**9 + 7 +print(a)