#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 = 3, m = 0;

    scanf("%lld", &n);
    if (n & 1 == 0)
    {
        n >> 1;
        count++;
    }
    while (1)
    {
        if (n == 1)
        {
            break;
        }
        if (i > sqrt(n))
        {
            count++;
            break;
        }
        if (n % i == 0)
        {
            count++;
            n /= i;
        }
        i++;
    }

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