Problem: Bakry got bored of solving problems related to xor, so he asked you to solve this problem for him.
You are given an array of integers .
Let's call a subarray good if , where denotes the bitwise XOR operation and denotes the bitwise AND operation.
Find the length of the longest good subarray of , or determine that no such subarray exists.
Input Format: The first line contains a single integer () — the length of the array.
The second line contains integers () — elements of the array.
Output Format: Print a single integer — the length of the longest good subarray. If there are no good subarrays, print .
Note: In the first case, the answer is , as the whole array is good: .
In the third case, the answer is , and one of the longest good subarrays is : .