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