#T680. 精妙数

精妙数

Description

Xiao Ming is studying recreational mathematics. If a positive integer has a binary representation that is a palindrome, Xiao Ming calls it a "wonderful number." For example, 33 in binary is 100001, so 33 is a wonderful number. Now, Xiao Ming has found T numbers and wants you to determine whether each of them is a wonderful number. Answer "Yes" if it is a wonderful number, otherwise answer "No".

Input Format

The first line inputs a number T, representing the count of numbers; followed by T lines, each inputting a number to be checked.

Output Format

Output T lines, each containing the string "Yes" or "No", separated by spaces.

```input1 3 44 33 22 ``` ```output1 No Yes No ``` ## Hint

【Data Range】

For 100% of the data, 1 ≤ T ≤ 100,000, 0 ≤ each number ≤ 10^9;


No AC solution available yet

Source

CodesOnline