Let's define a sequence of Gray Codes $$$G_n$$$ as follows:
| 0 | 1 | 1 | 0 | 0 | 1 | 1 | 0 |
| 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 |
| 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 |
The table $$$T_3$$$
The first line of input contains one integer $$$q$$$ ($$$1 \leq q \leq 10\,000$$$). The next $$$q$$$ lines each contain one number $$$n$$$ ($$$1 \leq n \leq 10^{18}$$$) described above.
Output $$$q$$$ lines. The $$$i$$$-th line should contain the answer to the $$$i$$$-th query in the input.
3 1 2 3
1 7 32
| Name |
|---|


