fun main(args : Array<String>) {
  val l = Array(1000) { 1 }
  (2..readLine()!!.toInt()).forEach {
    var n = it
    (2..999).forEach {
      while (n != 1 && n % it == 0) { n /= it; l[it]++ }
    }
  }
  print(l.map { it.toLong() }.reduce { a, b -> a * b % 1000000007 })
}