#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main(){
  int tot = 0;
  ll n;
  cin >> n;
  int sq_n = sqrt(n);
  vector<int> f;
  f.resize(sq_n);
  for (int i=2;i<=n;i++){
    int count = 0;
    while(n%i ==0){
      n /= i;
      count +=1;
    }
    int ccount = 0;
    for(int i=1;i<=count;i++){
      int copy = count;
      copy -= i;
      ccount +=1;
      if (copy<=i){
        break;
      }
    }
    tot += ccount;
    /*if(count > 0){
    cout << i <<": "<< count <<", "<< ccount << " times"<<endl;
  }*/
  }
  cout << tot << endl;
  return 0;
}
