const N = +require('fs').readFileSync('/dev/stdin', 'utf8'); const arr = []; let last = 1; for (let i = 1; i <= N; i++) { if (N % i == 0) { if (last * i === N) break; arr.push(String(i) + String(N / i)); if (i ** 2 === N) break; arr.push(String(N / i) + String(i)); last = i } } console.log([...new Set(arr)].length);