An integer $$$x$$$ is said to be a right-coupled number, if you can find two integers, say $$$0 \le a \leq b \leq x$$$ such that $$$a \times b = x$$$ and $$$\frac{a}{b} \geq 0.5$$$. In this problem, your task is to determine whether a given integer is a right-coupled number or not.
The first line of the input is an integer $$$N$$$ denoting the number of test cases ($$$1 \le N \le 1000$$$). Each test case is in one line, which contains a single integer $$$0 \lt x \lt 2^{15}$$$.
If the given integer $$$x$$$ is a right-coupled number, output $$$1$$$; otherwise, output $$$0$$$. Each is in a single line.
4 66 55 105 150
1 0 0 1
1 1 1 1
15
1 1 2 1
32
3 5 3 5 4 5 5
2 3 2
2 5 1 5 2
0 1
5 7 1 0 2 3 1 4 1 2 3 1 3 4 0 4
2
BBBRRRRRRGGGB 3
Yes
BBBRRRRRRGGGB 4
No
4 11 0 1 0 3 0 4 0 5 1 2 1 6 2 3 2 9 3 12 6 7 6 8 9 10 10 11 12 13 12 14
5
3 2 0 1 1 2 0 2 1 3 2 4
2
1 2 4 1 2 2 3 3 1 1 4 4 1 2 2 3 3 1 2 4
1
2 2 4 1 2 2 3 3 1 1 4 5 1 2 2 3 3 1 2 4 2 5 3 9 1 2 2 5 5 7 7 6 6 3 3 1 2 4 7 9 9 8 9 1 4 4 2 2 3 3 5 5 7 7 6 6 4 7 8 8 9 9 1 2 2 5 5 4 4 1 4 7 7 8 8 6 8 9 5 3
2 2
3 3 1 2 5 1 3 6 2 3 8
20
5 7 1 2 6 1 3 10 1 4 12 2 4 8 2 5 3 3 4 4 4 5 2
44
5 5 2 5 1 1 2 2 2 3 4 1 3 5 2 4 6
24
1 6 6 1 2 2 3 3 4 4 5 5 6 6 1
0 0 1 6
1 6 7 1 2 2 3 3 1 4 5 5 6 6 4 1 4
2 1 1 1
3 7 3 ABADCAB CBB 11 7 ABACCDBADAC AADCDAC 3 2 ABA CB
ACDABAB ABADBACCDAC NO
6 d 0 10 20 h 0 10 1f d 1 10 h 1 f d 1 1000000000 h 1 ffffffffffffffff
10 f 9 e - -
20 1 2 1 0 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