#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
	int n,sum=0;
	cin>>n;
	if(n==1){
		cout<<'0'<<endl;
		return 0;
	} 
	for(int i=2;i*i<=n;i++){
		if(n%i==0){
			int p=0;
			while(n%i==0)n/=i,p++;
			int ans=sqrt(p*2);
			if(ans*(ans+1)>p*2)ans--;
			sum+=ans;
		}
	}
	if(n>1){
		sum++;
	}
	cout<<sum<<endl;
	return 0;
}
