2026 - 最大异或对
Description

给定N个整数a_1,a_2,\dots,a_n中选出两个进行xor计算,得到的结果最大是多少?

N \leq 10^5,0\leq A_i \leq 2^{31}


Input

第一行一个数字N

第二行N个整数a_1,a_2,\dots,a_n

Output

一个整数,最大的异或值

Examples

Input

5
2 9 5 7 0

Output

14
题目参数
Time Limit 1 second
Memory Limit 128 MB
提交次数 1
通过次数 1