Problem: In Omkar's last class of math, he learned about the least common multiple, or . is the smallest positive integer which is divisible by both and .
Omkar, having a laudably curious mind, immediately thought of a problem involving the operation: given an integer , find positive integers and such that and is the minimum value possible.
Can you help Omkar solve his ludicrously challenging math problem?
Input Format: Each test contains multiple test cases. The first line contains the number of test cases (). Description of the test cases follows.
Each test case consists of a single integer ().
Output Format: For each test case, output two positive integers and , such that and is the minimum possible.
Note: For the first test case, the numbers we can choose are or . and , so we output .
For the second test case, the numbers we can choose are , , or . , , and , so we output .
For the third test case, . It can be shown that there are no other pairs of numbers which sum to that have a lower .