#abc169d. [abc169_d]Div Game
[abc169_d]Div Game
Problem Statement
Given is a positive integer . Consider repeatedly applying the operation below on :
- First, choose a positive integer satisfying all of the conditions below:
- can be represented as , where is a prime number and is a positive integer;
- divides ;
- is different from all integers chosen in previous operations.
- Then, replace with .
Find the maximum number of times the operation can be applied.
Constraints
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
Output
Print the maximum number of times the operation can be applied.
Sample Input 1
24
Sample Output 1
3
We can apply the operation three times by, for example, making the following choices:
- Choose . (Now we have .)
- Choose . (Now we have .)
- Choose . (Now we have .)
Sample Input 2
1
Sample Output 2
0
We cannot apply the operation at all.
Sample Input 3
64
Sample Output 3
3
We can apply the operation three times by, for example, making the following choices:
- Choose . (Now we have .)
- Choose . (Now we have .)
- Choose . (Now we have .)
Sample Input 4
1000000007
Sample Output 4
1
We can apply the operation once by, for example, making the following choice:
- . (Now we have .)
Sample Input 5
997764507000
Sample Output 5
7