const N = +require('fs').readFileSync('/dev/stdin', 'utf8'); console.log([...Array(N + 1).keys()].slice(1).filter(v => !(N % v)).length);