#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#define ll long long int

int main(void)
{
    ll n, count = 0;
    ll i = 2, m = 0;
    ll pre = 1;
    scanf("%lld", &n);
    /*if ((n & 1) == 0)
    {
        n = n >> 1;
        count++;
    }*/
    while (1)
    {
        if (n == 1 || pre == n)
        {
            break;
        }
        if (i > sqrt(n))
        {
            count++;
            break;
        }
        if (n % i == 0)
        {
            count++;
            n /= i;
            pre = i;
            //printf("%lld %lld\n", n, i);
        }
        i++;
    }

    printf("%lld\n", count);
    return 0;
}