


1. The maximum obtainable value can always be stored in 64-bit memory space.
2. The given number 'X' is always non-negative.
The first line of the input contains an integer 'T' denoting the number of test cases.
The first line and the only line of each test case contains an integer 'X'.
For each test case, print an integer 'Y' whose XOR with 'X' yields the maximum obtainable value in separate line.
You do not need to print anything, it has already been taken care of. Just implement the given function.
1 <= T <= 10^4
0 <= X <= 10^18
Time Limit: 1sec
You can observe that the bitwise xor of same bits is 0, while different bits is 1.