Given two numbers and in base , we define the xor of A and B as , where .
Little Achraf has an array S of integers in base and he was asked by his professor Toman to find the maximum number he can get by xoring exactly k numbers.
Input format:
First line contains two integers n and k, denoting the number elements in the sequence, and the number of integers you have to xor. Next line contains n integers.
Output format:
Output a single integer denoting the answer of the problem in base .
Constraints:
By choosing numbers 5 and 4, you will get the maximum score.