function main( args ) {
  let N = BigInt(args);
  if ( N < 2n ) return console.log('0');
  let count = 0;
  for ( let p = 2n; p*p <= N; p++ ) {
    if ( N % p === 0n ) {
      let z = p;
      while(N%z===0n)N/=z,z*=p,count++;
      while(N%p===0n)N/=p;
    }
  }
  if ( N > 1n ) count++;
  console.log(count.toString());
}
main(require("fs").readFileSync("/dev/stdin", "utf8"));