from functools import reduce
N = eval(input())

mod = 10 ** 9 + 7

num_p = [1] * 1001

p = []

# find p

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

  canDivide = True

  for j in range(2, i):

    if i % j == 0:

      canDivide = False

      break

  if canDivide:

    p.append(i)



# factorization

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

  for j in p:

    c = 0

    target = i

    while target % j == 0:

      c += 1

      target /= j

    num_p[j] = (num_p[j] + c) % mod



print(reduce(lambda x, y: x * y, num_p) % mod)
from functools import reduce
N = eval(input())

mod = 10 ** 9 + 7

num_p = [1] * 1001

p = []

# find p

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

  canDivide = True

  for j in range(2, i):

    if i % j == 0:

      canDivide = False

      break

  if canDivide:

    p.append(i)



# factorization

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

  for j in p:

    c = 0

    while i % j == 0:

      c += 1

      i /= j

    num_p[j] = (num_p[j] + c) % mod



print(reduce(lambda x, y: x * y, num_p) % mod)
from functools import reduce

N = eval(input())
mod = 10**9 + 7
num_p = [1] * 1001
p = []
# find p
for i in range(2, N + 1):
    canDivide = True
    for j in range(2, i):
        if i % j == 0:
            canDivide = False
            break
    if canDivide:
        p.append(i)
# factorization
for i in range(2, N + 1):
    for j in p:
        c = 0
        target = i
        while target % j == 0:
            c += 1
            target /= j
        num_p[j] = (num_p[j] + c) % mod
print(reduce(lambda x, y: x * y, num_p) % mod)

from functools import reduce

N = eval(input())
mod = 10**9 + 7
num_p = [1] * 1001
p = []
# find p
for i in range(2, N + 1):
    canDivide = True
    for j in range(2, i):
        if i % j == 0:
            canDivide = False
            break
    if canDivide:
        p.append(i)
# factorization
for i in range(2, N + 1):
    for j in p:
        c = 0
        while i % j == 0:
            c += 1
            i /= j
        num_p[j] = (num_p[j] + c) % mod
print(reduce(lambda x, y: x * y, num_p) % mod)

-        target = i -        while target % j == 0: +        while i % j == 0: -            target /= j +            i /= j