#include <stdio.h>

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