You want to enter the main character competition, but first you have to pass a special test called the brbak-test . The test is as follows:
Given an integer , you have to find two positive integers , such that :
x \cdot y = n.
neither nor ends with a .
x+y is maximized.
To make the test even harder, you're given different values of . Can you pass the brbak-test ?
First line consists of an integer (1 \le t \le 10^5), the number of testcases.
The next lines each contain an integer (1 \le n \le 10^{18}).
For each test case output two integers as an answer , If multiple answers exist print any.
Example 1
In the first testcase, There are only two pairs (,) that satisfy the first two conditions, (,),(,), and since both have the same x+y value, you can output any.
In the second testcase, Since doesn't end with , we can just choose one of the two pairs (,),(,), because they achieve the maximum value of x+y out of all the other pairs.
Subtask ( points): is odd
Subtask ( points): (1 \le n \le 500)
Subtask ( points): (1 \le n \le 10^5)
Subtask ( points): no additional constraints