#abc284d. [abc284_d]Happy New Year 2023

[abc284_d]Happy New Year 2023

Problem Statement

You are given a positive integer NN. It is known that NN can be represented as N=p2qN=p^2q using two different prime numbers pp and qq.

Find pp and qq.

You have TT test cases to solve.

Constraints

  • All values in the input are integers.
  • 1leqTleq101\\leq T\\leq 10
  • 1leqNleq9times10181\\leq N \\leq 9\\times 10^{18}
  • NN can be represented as N=p2qN=p^2q using two different prime numbers pp and qq.

Input

The input is given from Standard Input in the following format, where texttesti\\text{test}_i represents the ii-th test case:

TT texttest1\\text{test}_1 texttest2\\text{test}_2 vdots\\vdots texttestT\\text{test}_T

Each test case is in the following format:

NN

Output

Print TT lines.

The ii-th (1leqileqT)(1\\leq i \\leq T) line should contain pp and qq for the ii-th test case, separated by a space. Under the constraints of this problem, it can be proved that the pair of prime numbers pp and qq such that N=p2qN=p^2q is unique.


Sample Input 1

3
2023
63
1059872604593911

Sample Output 1

17 7
3 7
104149 97711

For the first test case, we have N=2023=172times7N=2023=17^2\\times 7. Thus, p=17p=17 and q=7q=7.