def main():

    import copy

    n = int(eval(input()))

    if n==1:

        print((0))

        return

    k = copy.deepcopy(int(n**0.5)+2)

    ans = 0

    for i in range(2,k):

        if n%i==0:

            m = 1

            ans += 1

            n = n//i

            cnt = 0

            while n%i==0:

                n = n//i

                cnt += 1

                if cnt > m:

                    m = m+1

                    cnt = 0

                    ans += 1

        if n==1:

            break

    if ans==0:

        print((1))

        return

    if n!=1:

        print((ans+1))

        return

    print(ans)



if __name__ == "__main__":

    main()

def main():

    n = int(eval(input()))

    if n==1:

        print((0))

        return

    k = int(n**0.5)+1

    ans = 0

    for i in range(2,k+1):

        if n%i==0:

            m = 0

            cnt = 0

            while n%i==0:

                cnt +=1

                n = int(n/i)

                if cnt>m:

                    ans += 1

                    cnt = 0

                    m +=1

                if n==1:

                    break

    if n==1:

        print(ans)

    else:

        print((ans+1))

    

if __name__ == "__main__":

    main()

def main():
    import copy

    n = int(eval(input()))
    if n == 1:
        print((0))
        return
    k = copy.deepcopy(int(n**0.5) + 2)
    ans = 0
    for i in range(2, k):
        if n % i == 0:
            m = 1
            ans += 1
            n = n // i
            cnt = 0
            while n % i == 0:
                n = n // i
                cnt += 1
                if cnt > m:
                    m = m + 1
                    cnt = 0
                    ans += 1
        if n == 1:
            break
    if ans == 0:
        print((1))
        return
    if n != 1:
        print((ans + 1))
        return
    print(ans)


if __name__ == "__main__":
    main()

def main():
    n = int(eval(input()))
    if n == 1:
        print((0))
        return
    k = int(n**0.5) + 1
    ans = 0
    for i in range(2, k + 1):
        if n % i == 0:
            m = 0
            cnt = 0
            while n % i == 0:
                cnt += 1
                n = int(n / i)
                if cnt > m:
                    ans += 1
                    cnt = 0
                    m += 1
                if n == 1:
                    break
    if n == 1:
        print(ans)
    else:
        print((ans + 1))


if __name__ == "__main__":
    main()

-    import copy - -    k = copy.deepcopy(int(n**0.5) + 2) +    k = int(n**0.5) + 1 -    for i in range(2, k): +    for i in range(2, k + 1): -            m = 1 -            ans += 1 -            n = n // i +            m = 0 -                n = n // i +                n = int(n / i) -                    m = m + 1 +                    ans += 1 -                    ans += 1 -        if n == 1: -            break -    if ans == 0: -        print((1)) -        return -    if n != 1: +                    m += 1 +                if n == 1: +                    break +    if n == 1: +        print(ans) +    else: -        return -    print(ans)