#include <iostream>
using namespace std;
int main() {
long long n;
cin >> n;
int moves = 0;
// Count all prime factors
for (long long p = 2; p * p <= n; p++) {
while (n % p == 0) {
moves++;
n /= p;
}
}
// Don't forget the last prime!
if (n > 1) moves++;
cout << moves << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBsb25nIGxvbmcgbjsKICAgIGNpbiA+PiBuOwoKICAgIGludCBtb3ZlcyA9IDA7CgogICAgLy8gQ291bnQgYWxsIHByaW1lIGZhY3RvcnMKICAgIGZvciAobG9uZyBsb25nIHAgPSAyOyBwICogcCA8PSBuOyBwKyspIHsKICAgICAgICB3aGlsZSAobiAlIHAgPT0gMCkgewogICAgICAgICAgICBtb3ZlcysrOwogICAgICAgICAgICBuIC89IHA7CiAgICAgICAgfQogICAgfQoKICAgIC8vIERvbid0IGZvcmdldCB0aGUgbGFzdCBwcmltZSEKICAgIGlmIChuID4gMSkgbW92ZXMrKzsKCiAgICBjb3V0IDw8IG1vdmVzIDw8IGVuZGw7CiAgICByZXR1cm4gMDsKfQoKICAgIA==