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 m, print an integer n such that m=2nφ(n)=∑_1≤i≤n, gcd(i,n)=1i. It is guaranteed that such an n exists in all the test cases.
The first line of input contains an integer T (1≤T≤51), the number of test cases.
The i-th of the following T lines contains a single integer m_i (0<m_i<1036).
For each test case, print an integer n_i for the corresponding m_i. It is guaranteed that the answer exists in every test case. If there are several possible answers, print any one of them.