Problem: Today, as a friendship gift, Bakry gave Badawy integers and challenged him to choose an integer such that the value is minimum possible, where denotes the bitwise XOR operation.
As always, Badawy is too lazy, so you decided to help him and find the minimum possible value of .
Input Format: The first line contains integer ().
The second line contains integers ().
Output Format: Print one integer — the minimum possible value of .
Note: In the first sample, we can choose .
In the second sample, we can choose .