Lucky Numbers#434

Lucky Numbers

1 second
128 megabytes
Medium (≈1350)

Numbers with at least three different prime divisors are called lucky numbers. For example, and are the first two lucky numbers. Given a natural number , you need to find the -th lucky number.

Input

The first line shows the number of tests . Each of the following lines contains an integer n~(n \le 2 \cdot 10^6).

Output

Output lines, each containing the corresponding lucky number for each test.

Examples

Example 1

Loading
Loading