fun main(args: Array<String>) {
    val n = readLine()!!.toInt()
    val pcnt = IntArray(n + 1)
    (2..n).forEach { i ->
        var div = i
        var j = 2
        while (j <= i) {
            if (div % j == 0) {
                pcnt[j]++
                div /= j
                if (div == 1) break
                continue
            }
            j++
        }
    }
    var result = 1L
    pcnt.filter { it != 0 }
        .forEach {
            result = (result * (it + 1)) % 1000000007
        }
    println(result)
}
