Company: Auxia_22july
Difficulty: medium
Challenge 8b Problem Description JATC's math teacher always gives the class some interesting math problems so that they don't get bored. Today the problem is as follows. Given an integer n, you can perform the following operations zero or more times: mul x: multiplies n by x (where x is an arbitrary positive integer). sqrt: replaces n with square root of n (to apply this operation, n must be a perfect square, and the result must be an integer). You can perform these operations as many times as you like. What is the minimum value of n, that can be achieved and what is the minimum number of operations, to achieve that minimum value? Input Input: Integer n. Output Output: Print two integers: the minimum integer that can be achieved using the described operations and the minimum number of operations required. Examples Example 1: Input: 20 Output: 10 2 Example 2: Input: 5184 Output: 6 4