Background Div.2 A What background do you want? Title Description Now Xttttr and his npy…
- User
Background Div.2 A What background do you want?
Title Description Now Xttttr and his npy are playing a counting game, but they like it very much. 2 2This number, therefore, established the following rules:
If a number a asatisfy popcount ( a ) ≥ 3 pop con u n t ( a )≥3, then the number is illegal and the other party needs to answer No,Commander. Otherwise, the number is legal and the other party needs to answer the next legal number. Of course, you, who are sitting next to them, don’t know the fun of the game. You just want to know what the other person should answer after a certain number is called out.
Input Format The first line contains a positive integer T T, indicating the number of inquiries.
later T TLines, each line contains a natural number a a, which means the number reported by one party in this inquiry.
Output Format T TLines, each line contains a positive integer or a string, indicating the answer that the other party should give in this inquiry.
Input and Output Examples Input #1copy 3 1 4 6 Output #1copy 2 5 8 Input #2copy 1 7 Output #2copy No, Commander Instructions/Tips for 20 % 2 0 %data, guarantee T ≤ 100 T≤1 0 0, a ≤ 1 0 4 a≤1 0 4 .
For other 20 % 2 0 %data, guarantee a ais a legal number.
For other 20 % 2 0 %data, guarantee a aUniformly random within the range.
for 100 % 1 0 0 %data, 1 ≤ T ≤ 1 0 5 1≤T≤1 0 5 , 0 ≤ a < 2 63 0≤a<2 6 3 .
- Assistant