import java.math.BigDecimal
import kotlin.math.log10

fun main() {
    var n = readLine()!!.trim().toLong()
    var p = 2L
    var count = 0
    while (p * p <= n) {
        if (n % p == 0L) {
            var c = 0
            var i = 1
            while (n % p == 0L) {
                ++c
                n /= p
                if (c >= i) {
                    ++count
                    c -= i
                    ++i
                }
            }
        }
        ++p
    }
    if (n != 1L) ++count
    println(count)
}
