#include<stdio.h>
#include<math.h>
int main()
{
long long int a,ans,i,sw,j,k;
  scanf("%lld",&a);
k=sqrt(a)+1;
sw=0;
ans=0;
int judge[10];
  for(i=0;i<10;++i)
  {
  judge[i]=i*(i+1);
  judge[i]=judge[i]/2;
  }
  
  while(a%2==0)
  {
  sw++;
  a=a/2;
  }
  
  for(i=1;i<9;++i)
  {  
  if(judge[i] <= sw  && sw< judge[i+1]) {ans=ans+i;
                                        break;
                                        }
  }
  sw=0;
  
  for(i=3;a>1 &&  i<=k;i=i+2)
  {
    while(a%i==0)
    {
    sw++;
    a=a/i;
    }
    
  for(j=1;j<9;++j)
  {
  if( judge[j] <= sw && sw < judge[j+1]) {ans=ans+j;
                                         break;
                                         }
  }
  sw=0;
  }
   
if(ans!=0) printf("%lld",ans);
else printf("1");  
return 0;
}