const input = require("fs").readFileSync("/dev/stdin", "utf8")
const N = parseInt(input, 10)

let c = 0
let n = N
for (let i = 2; i * i < n; i++) {
    let _i = i
    while (n % _i === 0) {
        n /= _i
        c++
        _i = _i * i
    }
    while (n % i === 0) {
        n /= i
    }
}

if (n > 1) {
    c++
}
console.log(c)
