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

int main() {
  long long n;
  cin >> n;
  int ans = 0;
  for (long long i = 2; i * i <= n; i++) {
    int cnt = 0;
    while (n % i == 0) {
      cnt++;
      n /= i;
    }
    for (int j = 1; j <= cnt; j++) {
      ans++;
      cnt -= j;
    }
  }
  if (n != 1) ans++;
  cout << ans << endl;
  return 0;
}