A number is called a power number if it can be represented as the power of some positive integer raised to at least the second power.
For example, is a power number because 4 = 2^2.
The number is also a power number because 27 = 3^3.
However, is not a power number.
Determine which of the given numbers are power numbers.
The first line contains the number of integers n~(1 \le n \le 10). The second line contains integers, each greater than and less than 10^9.
Print lines. On the -th line, print "YES" if the -th number is a power number, and "NO" otherwise.
Example 1