#408. Mod, Or and Everything
Mod, Or and Everything
Description
You are given an integer .
You are required to calculate (n mod 1) or (n mod 2) or ... or (n mod (n - 1)) or (n mod n).
The "or" operation means "bitwise OR".
Format
Input
The first line contains an integer representing the number of test cases.
For each test case, there is an integer in one line.
Output
For each test case, print the answer in one line.
Samples
5
1
2
3
4
5
0
0
1
1
3