#include <iostream>
#include <cmath>
using namespace std;
int main() {
long long n;
cin >> n;
int count = 0;
for (long long i = 2; i * i <= n; i++) {
if (n % i == 0) {
count++;
while (n % i == 0) {
n /= i;
}
}
}
if (n > 1) {
count++;
}
cout << count << endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y21hdGg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CiAKaW50IG1haW4oKSB7CiAgICBsb25nIGxvbmcgbjsKICAgIGNpbiA+PiBuOwogCiAgICBpbnQgY291bnQgPSAwOwogCiAgICBmb3IgKGxvbmcgbG9uZyBpID0gMjsgaSAqIGkgPD0gbjsgaSsrKSB7CiAgICAgICAgaWYgKG4gJSBpID09IDApIHsKICAgICAgICAgICAgY291bnQrKzsgCiAgICAgICAgICAgIHdoaWxlIChuICUgaSA9PSAwKSB7CiAgICAgICAgICAgICAgICBuIC89IGk7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9CiAKICAgIGlmIChuID4gMSkgewogICAgICAgIGNvdW50Kys7CiAgICB9CiAKICAgIGNvdXQgPDwgY291bnQgPDwgZW5kbDsKICAgIHJldHVybiAwOwp9