#include<bits/stdc++.h>
using namespace std;
long long n;
int a[500001],cnt=0;
int main(){
	cin>>n;
	int i,ans=0;
	for(i=2;i<=sqrt(n);++i){
		if(n%i==0){
			while(n%i==0){
				++a[cnt];
				n/=i;
			}
			++cnt;
		}
	}
	if(n!=1)++ans;
	for(i=0;i<cnt;++i){
		//cout<<a[i]<<endl;
		ans+=(-1+sqrt(1+8*a[i]))/2;
	}
	cout<<ans;
} 