Given

integers

. For all

in

, you should determine the maximum value you can get if you repeatably choose exactly

integers

and calulate their XOR sum

.
Please notice that you can choose one integer multiple times for one

in this problem.
输入描述:
The first line contains one integer
)
, denoting the number of given integers.
The second line contains

integers
)
.
输出描述:
One line containing
integers, where
-th integer denotes the maximum value you can get if you repeatably choose
integers and calulate their XOR sum.