function Main(input) {

	// 1行目がinput[0], 2行目がinput[1], …に入る
	input = input.split("\n").filter(Boolean);
    
    let N = Number(input[0]);
    let min_factor = [...Array(N+1).keys()];
    let ans = 0;
    
    min_factor[0] = -1;
    min_factor[1] = -1;
    
    for (let i = 2; i ** 2 <= N; i++) {
        if (min_factor[i] !== i) continue;
        for (let k = 2 * i; k <= N; k += i) {
            if (min_factor[k] > i) min_factor[k] = i;
        }
    }
    
    for (let c = 1; c < N; c++) {
        let freq = Array(N+1);
        let k = N - c;
        while (k >= 2) {
            if (freq[min_factor[k]]) freq[min_factor[k]] += 1;
            else freq[min_factor[k]] = 1;
            k = k / min_factor[k];
        }
        ans += freq.filter(val => val != 0).reduce((acc, val) => acc * (val + 1), 1)
    }
    
    console.log(ans)
    
}

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