N = require('fs').readFileSync('/dev/stdin','utf-8');
if(N == 1) { console.log(0); return; }
C = 0;
for(i = 2; i < 10000000; i++) {
  if(N % i == 0) {
    N = N / i;
    C = C + 1;
    if(N == 1) break;
  }
}
console.log(C);