You are given an array A containing N integers. You can do the following operation at most K times:
Your task is to find the maximum bitwise OR of the array.
Input format
Output format
For each test case, print the maximum possible bitwise OR of the array after performing at most K operations in a new line.
Constraints
1≤T≤1000001≤N≤2000000≤K≤1e180≤Ai≤260
It is guaranteed that the sum of N over T test cases does not exceed 1e6.
For the first testcase, we can increase the value of 5-th index by 2. Thus the A becomes {1,3,7,0,8,1}. The bitwise OR of the array A becomes 15.
For the second testcase, we can increase the value of 1-th index by 1000000000. Thus the A become {1000000000}. The bitwise OR of the array A becomes 1000000000.