Gabriel is a student from UFPE that loves acai (he really loves it). As he is really passionate about it, he became very picky about how much acai a perfect bowl should have.
A bowl is said to be perfect if the volume of acai in it is a perfect number.
A perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself.
Gabriel decided to go to different restaurants and ask how much acai they have. Your task is to help him get the biggest perfect bowl on each of them or declare it is impossible.
The first line of input contains an integer $$$n$$$ ($$$1 \le n \le 2 \cdot 10^{6}$$$), the number of restaurants Gabriel will visit. Each of the next $$$n$$$ lines contains an integer $$$k_i$$$ ($$$1 \le k_i \le 2 \cdot 10^{6}$$$), the amount of acai the $$$i$$$-th restaurant has.
Output should consist of $$$n$$$ lines. The $$$i$$$-th of them must contain an integer $$$a_i$$$, the biggest acai Gabriel can have at the $$$i$$$-th restaurant, or $$$-1$$$ if it's not possible to have a perfect acai.
2 8 5
6 -1