fun main(args: Array<String>) {
    val n = readLine()!!.toLong()
    val l = mutableListOf<Int>()
    var m = n
    var cur = 2L
    while (cur * cur <= n) {
        var cnt = 0
        while (m % cur == 0L) {
            m /= cur; cnt += 1
        }
        if (cnt > 0) l.add(cnt)
        cur += 1
    }
    if (m != 1L) l.add(1)
    println(l.map { calc(it) }.sum())
}

fun calc(n: Int): Int {
    var ans = 0
    while (((ans+1) * (ans + 2)) / 2 <= n) {
        ans += 1
    }
    return ans
}
