"use strict";

const main = arg => {
    const input = arg.trim().split("\n");
    const n = parseInt(input[0])

    const helper = function(num){
        let last = Math.ceil(Math.sqrt(num))+1
        for(let i = 2; i<= last; i++){
            let tmp = num
            while(tmp / i >= 1){
                tmp = tmp/i
                if(tmp === 1) return true
            }
        }
        return false
    }
    
    const get = function(num){
        let ret = [num]
        for(let i = 2; i<Math.ceil(Math.sqrt(num)); i++){
            if(helper(i)) ret.push(i)
        }
        return ret
    }

    let arr = get(n)
    let tmp = n
    let cnt = 0
    let idx = 0
    while(idx<arr.length){
        if(tmp % arr[idx] ===0){
            tmp = tmp / arr[idx]
            cnt++
        }
        idx++
    }
    return cnt
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));  