#include <bits/stdc++.h>
using namespace std;
ifstream f("D.in");
typedef long long ll;

int main()
{
    ll N,ans=0;
    cin>>N;
    if(N==1)
    {
        cout<<0;
        return 0;
    }
    for(ll i=2;i*i<=N;i++)
    if(N%i==0)
    {
        ll cnt=0;
        while(N%i==0) N/=i,cnt++;
        ll rez=( sqrt(1+8*cnt) -1 )/2;
        ans+=rez;
    }
    if(N!=1) ans++;
    cout<<ans;

    return 0;
}
