#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
    ll n;
    cin>>n;
    ll ans=0;
    for(int i=2;i<=sqrt(n);i++)
    {
        ll p = i;
        while(n%p==0)
        {
            n/=p;
            p*=i;
            ans++;
        }
        while(n%i==0)
            n/=i;
    }
    if(n!=1) ans++;
    cout<<ans<<endl;
}