Even? Odd?

Decide for each of up to 100 numbers up to 1e18 whether its divisor count is odd or even.

Easy3Number theoryMathInterviewNo attempts yetTime limit2sMemory limit256 MB

Problem

If the remainder of BB divided by AA is 00, then AA is a divisor of BB. (A>0A > 0, B>0B > 0) For example, the divisors of 1515 are 11, 33, 55, 1515.

Decide whether a given number has an odd or an even number of divisors.

Input

The first line contains the number of tests NN. (1N1001 \le N \le 100)

The second line contains NN numbers XX, separated by spaces, whose divisor counts you must classify. (1X10181 \le X \le 10^{18})

Output

For each number print 11 if its divisor count is odd and 00 if it is even. Print the NN answers on one line in the input order, separated by single spaces.