#include<stdio.h>
#include<math.h>
#include<string.h>


int main() {
	int i, j, k;
	int  n = 0;
	long long int f = 0, m = 0;
	int g = 0;
	int x[110] = {0};
	int a, b, c, d;


	scanf("%lld", &m);
	
	if (m%2 == 0) {
		for (j = 0;m%2 == 0;j++) {
			m = m / 2;
		}
		if (j == 1){
			f=f+1;
		}
		else if (j <= 3) {
			f = f + 2;
		}
		else if (j <= 6) {
			f = f + 3;
		}
		else if (j <= 10) {
			f = f + 4;
		}
		else if (j <= 15) {
			f = f + 5;
		}
		else if (j <= 21) {
			f = f + 6;
		}
		else if (j <= 28) {
			f = f + 7;
		}
		else if (j <= 36) {
			f = f + 8;
		}
		else{
			f = f + 9;
		}
	}
	for (i=3;m>1;i=i+2) {
		
		if (m%i==0) {
			for (j=0;m%i == 0;j++) {
				m = m / i;
			}
			if (j == 1) {
				f = f + 1;
			}
			else if (j <= 3) {
				f = f + 2;
			}
			else if (j <= 6) {
				f = f + 3;
			}
			else if (j <= 10) {
				f = f + 4;
			}
			else if (j <= 15) {
				f = f + 5;
			}
			else if (j <= 21) {
				f = f + 6;
			}
			else if (j <= 28) {
				f = f + 7;
			}
			else if (j <= 36) {
				f = f + 8;
			}
			else {
				f = f + 9;
			}
		}
		
	}

	printf("%d", n);

	return 0;
}