function main(input) {
	var n = input / 1;
	var result = 0;
	for (var i = 0; i <= n; i++) {
		if (n % i == ~~(n / i)) result++;
	}
	console.log(result);
}

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