You are given a sequence of N numbers. You can perform the following operation:
Select a number from the sequence and swap any pair of bits in its binary representation (Binary representation does not have any leading zeroes).
Output the lexicographic maximum sequence possible after performing 0 or more of the above operations.
Input format
Output format
Print N space-separated integers denoting the lexicographic maximum sequence possible.
Constraints
1≤N≤100000
1≤Ai≤1018
Binary representation of 10 = 1010. Swap second and third bit to get the binary represenation as 1100 = 12.