let input = require('fs').readFileSync('/dev/stdin', 'utf8')
// let input = require('fs').readFileSync('./sample_c.txt', 'utf8')
.split(/\n| /)
.slice(0 ,-1)
.map(item => parseInt(item))


const [N] = input

const sample = N => {
    const res = []
    for(let i=1; i*i <= N; ++i) {
        if (N % i == 0) {
            res.push(i)
            // 重複しないならば i の相方である N/i も push
            if (N/i != i) res.push(N/i)
        }
    }
    return res
}

let count = 0
for (let C=1; C<N; C++){
    const right = N-C
    const Nums = sample(right)
    for(let j=0; j<Nums.length; j++){
        for(let k=0; k<Nums.length; k++){
            if( Nums[j]*Nums[k] === right ){
                count++
            }
        }
    }
}
console.log(count)