#include <stdio.h>
#include <math.h>
 
int main(){
  long long n;
  long long count = 0;
  long long k = 0;
  long long s = 1;
  int i;
  
  
  scanf("%lld", &n);
  
  if(n == 1){
    printf("0\n");
    return 0;
  }
  
  while (n % 2 == 0){
    n /= 2;
    k++;
    if(k == s){
      count++;
      s++;
      k = 0;
    }
  }
  
  k = 0;
  s = 1;
  
  for (i = 3; i <= sqrt(n); i++){
        while (n % i == 0){
            n /= i;
            k++;
            if(k == s){
              count++;
              s++;
              k = 0;
            }
        }
  }
  
  printf("%lld\n", count);
  return 0;
}