The Main Character#12217

The Main Character

2 seconds
256 megabytes
Medium

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 :

To make the test even harder, you're given different values of . Can you pass the brbak-test ?

Input

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}).

Output

For each test case output two integers as an answer , If multiple answers exist print any.

Examples

Example 1

Loading
Loading

Note

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.

Scoring

  • Subtask ( points): is odd

  • Subtask ( points): (1 \le n \le 500)

  • Subtask ( points): (1 \le n \le 10^5)

  • Subtask ( points): no additional constraints