#include <bits/stdc++.h>
using namespace std;

int main() {
    long n, r = 0;
    cin >> n;
    for(int i = 2; i <= n / i; i++) {
        if(n % i)
            continue;
        int c = 0;
        while(n % i == 0)
            n /= i, c++;
        int k = 0;
        for(; k * (k + 1) / 2 <= c; k++)
            ;
        r += k - 1;
    }
    if(n > 1)
        r++;
    cout << r << endl;
    return 0;
}
