#Q52. 「一本通 2.3 例 2」The XOR Largest Pair

「一本通 2.3 例 2」The XOR Largest Pair

Description

Given NN integers A1,A2,...,ANA_1, A_2, ..., A_N, select two of them to perform an XOR operation. What is the maximum possible result?

Input Format

The first line contains an integer NN.

The second line contains NN integers AiA_i.

Output Format

Output a single integer representing the answer.

Sample 1

5
2 9 5 7 0

14

Constraints & Hints

For 100%100\% of the data, 1N1051\le N\le 10^5 and 0Ai<2310\le A_i <2^{31}.