#include <bits/stdc++.h>
using namespace std;
#define ull unsigned long long int
int main() {
 
	ull N; cin >> N;
	int ans = 0;
	for(int i=2;i*1LL*i<=N;++i) {
		int cur = 0;
		while (N % i == 0) {
			cur++;
			N /= i;
		}
		for(int j=1;j<=cur;++j) {
			if (cur < j) break;
			ans++; cur -= j;
		}
	}
	if (N > 1) ans++;
	cout << ans << endl;
 
	return 0;
}