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

int main() {
  ll n;
  cin >> n;
  map<int, int> factor;
  for (ll i = 2; i * i <= n; ++i) {
    while (n % i == 0) {
      factor[i] += 1;
      n /= i;
    }
  }
  if (n != 1)
    factor[n] += 1;
  int ans = 0;
  for (auto x : factor) {
    for (int i = 1; i <= x.second; i++) {
      x.second -= i;
      ans += 1;
    }
  }
  cout << ans << endl;
}
