#include <stdio.h>

int main() {
    long long int N;
    int res = 0;
    scanf("%lld", &N);

    for (long long int i = 2; i * i <= N; i++) {
        if (N % i != 0) continue;

        int acc = 1;
        N /= i;

        while(N % i == 0) {
            acc++;
            N /= i;
        }

        if (acc < 3) {
            res++;
        } else if (acc < 6) {
            res += 2;
        } else if (acc < 10) {
            res += 3;
        } else if (acc < 15) {
            res += 4;
        } else if (acc < 21) {
            res += 5;
        } else if (acc < 28) {
            res += 6;
        } else res += 7;
    }

    if (N != 1) res++;

    printf("%d\n", res);
}
