function MainC(input){
    const N = Number(input);
    let answer = 0;
    for(let A=1; A<N; A++){
        for(let B=1; B<N/A; B++){
            answer++;
        }
    }
    console.log(answer);
}
MainC(require("fs").readFileSync("/dev/stdin", "utf8").trim());
