Historic Breakthrough

아직 제출이 없습니다시간 제한2초메모리 제한512 MB

문제

Rikka is taking the undergraduate cryptography course this year. In the class, it is mentioned that a new method of factorization was recently discovered, which is considered a historic breakthrough in cryptography. Rikka believes that there will be comparable algorithms for some specific class of numbers with simpler goals.

Now you are asked to design and implement such a "factorization" algorithm: given an integer mm, print an integer nn such that m=nφ(n)2=_1in, gcd(i,n)=1i.m = \frac{n \varphi(n)}{2} = \sum\limits\_{\begin{array}{c}1 \le i \le n, \\\ \mathrm{gcd}(i, n) = 1\end{array}} i \text{.} It is guaranteed that such an nn exists in all the test cases.

입력

The first line of input contains an integer TT (1T511 \le T \le 51), the number of test cases.

The ii-th of the following TT lines contains a single integer m_im\_i (0<m_i<10360 < m\_i < 10^{36}).

출력

For each test case, print an integer n_in\_i for the corresponding m_im\_i. It is guaranteed that the answer exists in every test case. If there are several possible answers, print any one of them.