Given an array of integers a_1, a_2, \ldots, a_n. For a given value , find such a_i that x \mathbin{\mathrm{xor}} a_i is maximized.
The first line contains the numbers (n \le 10^5) and . The second line contains integers a_1, a_2, \ldots, a_n (0 \le a_i \le 10^{18}). Each of the next lines contains one number (0 \le x \le 10^{18}).
For each value of , print in a separate line such a value a_i that x \mathbin{\mathrm{xor}} a_i is maximized.
Example 1