#include <stdio.h>

int main()
{
	long long n, ncp;
	scanf("%lld", &n);
	ncp = n;

	int i;
	int count = 0;
	if (n == 1) {
		printf("0\n");
	} else {
		for (i = 2; i * i <= ncp; i++) {
			int incount = 0;
			if (n % i == 0) {
				int j = 0;
				while (n % i == 0) {
					n = n / i;
					j++;
					if (j > incount) {
						incount++;
						j = 0;
					}
				}
				count += incount;
			}

//			fprintf(stderr, "%d %d %d\n", i, incount, count);
		}
		if (ncp == n) {
			printf("1\n");
		} else {
			printf("%d\n", count);
		}
	}
	return 0;
}
