fun main(args : Array<String>){

    val n = readLine()!!.toInt()

    var num = IntArray(1001,{it -> 0})

    for(i in 2..n){
        var tmp = i
        for(j in 2..i){
            if(tmp == 1)break;
            while(tmp % j == 0){
                num[j]++;
                tmp /= j
            }
        }
    }

    var ans = 1L

    for(i in 0..1000){
        ans *= num[i] + 1
        ans %= 1000000007
    }

    println(ans)

}
