n=int(eval(input()))

a=p=1

while p<6**8:

 c=t=0;p+=1

 while n%p<1:n//=p;x=c==t;t+=x;c+=1-t*x;a+=x

print((a-(n<2)))
n=int(eval(input()))

a=p=1

while p<1e6:

 c=t=0;p+=1

 while n%p<1:n//=p;x=c==t;t+=x;c+=1-t*x;a+=x

print((a-(n<2)))
n = int(eval(input()))
a = p = 1
while p < 6**8:
    c = t = 0
    p += 1
    while n % p < 1:
        n //= p
        x = c == t
        t += x
        c += 1 - t * x
        a += x
print((a - (n < 2)))

n = int(eval(input()))
a = p = 1
while p < 1e6:
    c = t = 0
    p += 1
    while n % p < 1:
        n //= p
        x = c == t
        t += x
        c += 1 - t * x
        a += x
print((a - (n < 2)))

-while p < 6**8: +while p < 1e6: