function Main(input){
    input=input.split("\n");  //ここまで必須
    var result=0;
    var num=input[0];
    for (i=2;i<parseInt(input[0])+1;i++){
       if (parseInt(num)%parseInt(i)==0){
           result=result+1;
           num=parseInt(num)/parseInt(i)
       } 
    }
    console.log(result)
}
Main(require("fs").readFileSync("/dev/stdin","utf8"));