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

int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);

  long long n;
  cin >> n;

  int result = 0;
  for (long long i = 2; i * i <= n; ++i) {
    if (n % i != 0) continue;
    int c = 0, j = 1;
    while (n % i == 0) n /= i, ++c;
    while (c >= j) {
      ++result;
      c -= j;
      ++j;
    }
  }

  if (n > 1) ++result;

  cout << result << '\n';
}