function main(input) {
    var N= Number(input.trim());
    var count = 0 
    for (var C = 1; C <N ; C++){
        var X = N-C;
        for (var A=1; A<=X;A++){
            if (X%A==0) count++;
        }
    }
    console.log(count);
}

main(require('fs').readFileSync('/dev/stdin', 'utf8'));