"use strict";

function main(input) {
  input = Number(input.trim());
  let count = 0;
  for (let c = 1; c <= input; c++) {
    for (let a = 1; a < input; a++) {
      if (!(a > input.length / 2)) {
        for (let b = 1; b < input; b++) {
          if (a * b + c == input) {
            count++;
          }
        }
      }
    }
  }
  console.log(count);
}

function numberSort(array) {
  array.sort(f);
  return array;
}

var f = function (a, b) {
  return a - b;
};

main(require("fs").readFileSync("/dev/stdin", "utf-8"));
