#include <stdio.h>
#include <math.h>

int main(){
  long long n;
  long long count = 0;
  long long count_r = 0;
  long long i;
  
  scanf("%lld", &n);
  
  if(n == 1){
    printf("0\n");
    return 0;
  }
  
  long long n2 = n;
  
  while(n % 2 == 0){
    n /= 2;
    count++;
    
    long long j = 1;
    
    while(count - j > 0){
      count -= j;
      count_r++;
      j++;
    }
  }
  
  count = 0;
  
  for(i = 3; i <= n2 / 2; i += 2){
    while(n % i == 0){
      n /= i;
      count++;
    }
    
    long long j = 1;
    
    while(count - j > 0){
      count -= j;
      count_r++;
      j++;
    }

    count = 0;
  }
  
  if(count_r == 0){
      printf("1\n");
      return 0;
  }
    
  
  printf("%lld\n", count_r);
  return 0;
}
