import std.stdio;

void main() {
	long n;
	readf("%s", &n);

	long divCount;

	{
		auto d = 2;
		while (n >= d && n % d == 0) {
			n /= d;
			++divCount;
			d *= 2;
		}
	}
	
	for (long i = 3;n >= i;i += 2) {
		auto d = i;
		while (n >= d && n % d == 0) {
			n /= d;
			++divCount;
			d *= i;
		}
	}

	writeln(divCount);
}
