#include <bits/stdc++.h>

using namespace std;

int main(void) {
    long long n;

    cin >> n;

    int ans = 0;
    long long aux = n;
    for (long long i = 2; i * i <= n; i++) {
        if (aux % i == 0) {
            aux /= i;
            ans++;
        }
    }
    if (ans == 0 && n != 1) {
        cout << 1 << endl;
    } else {
        cout << ans << endl;
    }
    return 0;
}