function Main(input) {
    var INT_MAX = 1000000007;
    input = input.split("\n");
    var line = input[0].split(" ");
    var max = parseInt(line[0]);
    var prime = [2,3,5,7,11,13,17,19,23,29,31];
    var yakusuu = Array(32).fill(0);
    for(var i = 2; i<=max; i++){
        var test = i;
        for(var j = 0; j<prime.length; j++){
            while(1){
                if(test%prime[j]===0){
                    yakusuu[prime[j]]++;
                    test = test / prime[j];
                } else {
                    break;
                }
            }
        }

    }
    var ans = 1;
    for(var i = 0; i<yakusuu.length; i++){
        if(yakusuu[i] === 0){
            continue;
        } else {
            ans*= (yakusuu[i]+1);
            if(ans>INT_MAX){
                ans = ans % INT_MAX;
            }
        }
    }
    
    console.log(ans)

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));