fun main(args: Array<String>) {
    val n=readLine()!!.toInt()
    val ptable = IntArray(n+1)
    for(i in 1..n){
        divide(i).forEach{
            ptable[it]++
        }
    }

    var ans = 1L
    ptable.forEach {
        ans*=it+1
        ans%=1000000007
    }
    println(ans)
}

fun divide(x:Int):List<Int>{
    val list = mutableListOf<Int>()
    var i=2
    var tmp=x
    while(i<=x){
        if(tmp==1) break
        if(tmp%i==0) {
            list.add(i)
            tmp /= i
            continue
        }
        i++
    }
    return list
}

