#include <iostream>
#include <cstdio>
#include <cstring>
#include <math.h>
using namespace std;


int main()
{
    int64_t n;
    cin>>n;
    int64_t s=0;
    int64_t i,j;
    for(i=2;i<=n/i;i++)
    {
        if(n%i) continue;
            for(j=i;j<=n;j*=i)
                if(n%j==0){s++;n=n/j;}
            while(n%i==0)
                n/=i;

    }
    if(n!=1) s++;
    cout<<s<<endl;
    return 0;
}
