//div game
#include <stdio.h>
#include <math.h>

int main(void){
    unsigned long int n;

    scanf("%lu",&n);

    unsigned int i=0;
    unsigned long int cnt = 0;
    if(n == 1) printf("0");

    i=2;
    if(n%i==0) {
        unsigned long int div = i;
        for(unsigned int j = 1;n%(int)pow(div,j)==0;j++){
            n/= pow(div,j);
            cnt ++;
        }
        while(n%div == 0) n/=div;
    }

    for(i = 3;i<sqrt(n);i+=2){
        if(n%i==0) {
            unsigned long int div = i;
            for(unsigned int j = 1;n%(int)pow(div,j)==0;j++){
                n/= pow(div,j);
                cnt ++;
            }
            while(n%div == 0) n/=div;
        }
    }
    if(n>sqrt(n)) cnt ++;
    printf("%lu",cnt);

    return 0;
}
