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

int main(void){

    long N = 0;
    int count = 0;
    int count2 = 0;
    int check = 0;
    scanf("%ld", &N);
    long tmpN = 0;
    long A[1000];
    tmpN = N;
    
    for (int i = 1; (double)i <= sqrt((double)N); i++){
        if (N % i == 0){
            A[count] = i;

            if (tmpN % A[count] == 0 && i != 1){
                tmpN = tmpN / A[count];
                count2++;
                check = 1;
            }
            count++;
        }
    }
    if (N == 1){
        printf("0\n");
    } else if (check == 0){
        printf("1\n");    
    } else {
        printf("%d\n", count2);
    }

    return 0;
}