#include<stdio.h>
#include<math.h>
long int p[1000000],n,a,mp,lp;
void pf(long int k){
  if(k%2==0){p[2]++;pf(k/2);return;}
  int i,sq=sqrt(k);
  for(i=3;i<=sq;i+=2){if(k%i==0){p[i]++;pf(k/i);return;}}
  if(k==n){mp=1;return;}
  if(k<=1000000)p[k]++;else lp=1;
}
int main(){
  int i;
  scanf("%ld",&n);
  if(n==1){printf("0");return 0;}
  for(i=0;i<1000000;i++)p[i]=0;
  lp=mp=0;pf(n);
  if(mp){printf("1");return 0;}
  a=0;for(i=0;i<1000000;i++)if(p[i])a+=(sqrt(1+8*p[i])-1)/2;
  printf("%ld",a+lp);
}
