#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main() {
	ll N;
	cin >> N;
	int res = 0;
	for (ll i = 2; i*i <= N; ++ i) {
		int c = 0;
		while (N % i == 0) {
			N /= i;
			++ c;
		}
		for (int i = 1, j = 1; j <= c; j += ++ i) {
			++ res;
		}
	}
	if (N > 1) {
		++ res;
	}
	cout << res << endl;
}
