#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MOD 1000000007
#define INF 1000000000000000000
#define PI 3.14159265359
#define ull unsigned long long
#define MYPOW_t int

ull hantei(ull z){
    ull i=2;
    while (1) {
        if (z%i==0) {
            while (i<=z) {
                z/=i;
            }
            if (z==1) return 0;
            else return 1;
        }
        i++;
    }
    return 1;
}

int main(){
    ull n,z=2,count=0;
    scanf("%lld",&n);
    while (n!=1) {
        if (n%z==0&&hantei(z)==0) {
            n/=z;count++;
        }
        z++;
    }
    printf("%lld",count);
    return 0;
}



