using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class AtCoderC
{
    static void Main()
    {
        var sc = new Scanner();

        long n = sc.NextLong();

        Dictionary<long, long> dic = new Dictionary<long, long>();

        if (IsPrime(n))
        {
            Console.WriteLine(1);
            return;
        }

        long now = n;
        long current = 2;
        double sqrt = Math.Sqrt(n);
        while (true)
        {
            if (now % current == 0)
            {
                now /= current;
                if (dic.ContainsKey(current))
                {
                    dic[current]++;
                }
                else
                {
                    dic.Add(current, 1);
                }
                if (IsPrime(now))
                {
                    if (dic.ContainsKey(now))
                    {
                        dic[now]++;
                    }
                    else
                    {
                        dic.Add(now, 1);
                    }
                    break;
                }
            }
            else
            {
                current++;
            }
            if (current > sqrt)
            {
                break;
            }
        }

        long answer = 0;

        foreach (var item in dic)
        {
            long num = item.Value;

            long max = num;
            for (long i = 1; i <= max; i++)
            {
                if (num >= i)
                {
                    answer++;
                    num -= i;
                }
            }
        }

        Console.WriteLine(answer);
    }

    // 素数判定
    private static bool IsPrime(long num)
    {
        if (num < 2)
        {
            return false;
        }
        if (num == 2)
        {
            return true;
        }
        if (num % 2 == 0)
        {
            return false;
        }

        double sqrt = Math.Sqrt(num);
        for (long i = 3; i <= sqrt; i += 2)
        {
            if (num % i == 0)
            {
                return false;
            }
        }
        return true;
    }

    class Scanner
    {
        private string[] _line;
        private int _index;
        private const char Separator = ' ';

        public Scanner()
        {
            _line = new string[0];
            _index = 0;
        }

        public string Next()
        {
            while (_index >= _line.Length)
            {
                _line = Console.ReadLine().Split(Separator);
                _index = 0;
            }

            return _line[_index++];
        }

        public int NextInt() => int.Parse(Next());
        public long NextLong() => long.Parse(Next());
        public double NextDouble() => double.Parse(Next());
        public decimal NextDecimal() => decimal.Parse(Next());
        public char NextChar() => Next()[0];
        public char[] NextCharArray() => Next().ToCharArray();

        public string[] Array()
        {
            _line = Console.ReadLine().Split(Separator);
            _index = _line.Length;
            return _line;
        }

        public int[] IntArray() => Array().Select(int.Parse).ToArray();
        public long[] LongArray() => Array().Select(long.Parse).ToArray();
        public double[] DoubleArray() => Array().Select(double.Parse).ToArray();
        public decimal[] DecimalArray() => Array().Select(decimal.Parse).ToArray();
    }
}

Measured memory_bytes: 27812