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

int main() {
	long long n;
	cin >> n;
	vector<pair<long long, int>> fs;//素数・係数のペア

	//素因数分解
	for (long long i = 2; i * i <= n; ++i) {
		int x = 0;//係数
		while (n%i == 0)
		{
			n /= i;
			++x;
		}
		fs.emplace_back(i, x);
	}
	if (n != 1)fs.emplace_back(n, 1);


	int ans = 0;
	for (auto i: fs)
	{
		int x = i.second;//係数の取り出し
		int tmp = 1;
		while (tmp <= x)
		{
			x -= tmp;
			tmp++;
			ans++;
		}
	}

	cout << ans << endl;


	return 0;
}