#include <iostream>
using namespace std;
int main()
{
int n;
cin >> n;
int i = 2;
int cnt = 0;
while (n != 1)
{
if (n % i == 0)
{
n = n / i;
cnt++;
}
else
i++;
}
cout << cnt;
return 0;
}