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

int main(void){
    int n;
    scanf("%d",&n);
    long tmpn=n;

    int i;
    double rootn = sqrt(n);
    int count=0;
    long tmp;

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

    return 0;
}
