M is alone and he has an array . M wants to choose two integers such that and the value (bitwise AND) is maximum.
What is the maximum value M can get?
Input
First line contains only , legnth of array.
Second line contains the array elements separated by space.
Output
The only line of output contains an integer, maximum value value that M can get.
M can choose and with bitwise AND which is maximum.