#include <stdio.h>

long n;

int count(int d) {
   int i,j;
  
   for (i=0;n%d==0;i++) n/=d;
   if (i==0) return 0;
   for (j=1;i>=j;j++) i-=j;
   return j-1;
}

int main(){
   int  i,a;

   scanf("%ld",&n);
   a=count(2);
   for (i=3;i*i<=n;i+=2) a+=count(i);
   if (n>1) a++;
   printf("%d\n",a);
   return 0;
}
