#include <bits/stdc++.h>
using namespace std;
long long n,ans;
int main () {
	scanf("%lld",&n);
	for (long long i=2;i*i<=n;i++) {
		if (n%i==0) {
			int cnt=0;
			while (n%i==0) {cnt++,n/=i;}
			int cur=1,res=0;
			while (cnt>=cur) {
				cnt-=cur,res++;
				cur++;
			}
			ans+=res;
		}
	}
	if (n>1) {ans++;}
	printf("%lld\n",ans);
	return 0;
}