#include <stdio.h>
#include <math.h>

int main(void){
    long n;
    scanf("%ld",&n);
    long tmp_n=n;

    int i,count=0;
    double root_n = sqrt(n);
    long tmp;
    int judge;

    for (i = 2; i <= root_n; i++){
        tmp=i;
        judge=0;
        while (n % tmp == 0){
            judge++;
            count++;
            n/=tmp;
            tmp *= i;
        }
    }
    if(count==0 && tmp_n!=1){
        count++;
    }
    printf("%d\n",count);

    return 0;
}
