import scala.io.StdIn._

/**
 * Created by sonetsuyoshi on 2015/12/16.
 */

object Main extends App {
  val MOD = 1000000007

  val N = readInt

  def primesUnder(n: Int): List[Int] = {
    require(n >= 2)

    def rec(i: Int, primes: List[Int]): List[Int] = {
      if (i > n) primes
      else if (prime(i, primes)) rec(i + 1, i :: primes)
      else rec(i + 1, primes)
    }

    rec(2, List()).reverse
  }

  def prime(num: Int, factors: List[Int]): Boolean = factors.forall(num % _ != 0)

  val primes = primesUnder(N)

  val expos = primes.map(x => {
    1.to(N).foldLeft(0.toLong)((s, n) => {
      var m = n
      var count = 0
      while(m % x == 0) {
        m /= x
        count += 1
      }
      (s + count).toLong
    })
  })
  println(expos.foldLeft(1.toLong)((s, n) => s * (n + 1) % MOD))
}
