#include<bits/stdc++.h>
using namespace std;
const long double PI = 3.14159265358979323846;  /* pi */

int main() {
    long long n;
    cin >> n;
    int ans = 0;
    for (long long p = 2; p <= sqrt(n) + 10; p ++)
    {
        if (n % p == 0)
        {
            long long v = p;
            for (int e = 1; e <= 100000; e++)
            {
                if (n % v == 0)
                {
                    n /= v;
                    ans ++;
                }
                else
                    break;
                v *= p;
            }

            while (n % p == 0)
                n /= p;
        }
    }
    if (n > 1)
        ans ++;
    cout << ans;
    return 0;
}