object Main extends App{
    val n = io.StdIn.readLong
    
    if (n == 1) println(0)
    else if (n == 2) println(1)
    else {
        
        val divisors = (3 to n.toInt by 2).filter(n % _ == 0)
        
        if (divisors.length == 1) println(1)
        else {
            
            def rec(acc: Long, index: Int, count: Int): Int = {
                if (divisors.length-1 < index) count
                else if (acc % divisors(index) == 0) rec(acc/divisors(index), index+1, count+1)
                else rec(acc, index+1, count)
            }
            
            val output = rec(n, 0, 0)
            println(output)
            
        }
    }
}