#icpc2013summerwarmingUpf. [icpc2013summer_warmingUp_f]Maximum Segment XOR

[icpc2013summer_warmingUp_f]Maximum Segment XOR

Description

XOR is the operation as basic as addition for programmers.
Genius programmer KM made the following problem to test his disciple wata.
Given NN integers ai\\{a_i\\}, find the two integers ss and tt (1leqsleqtleqN1 \\leq s \\leq t \\leq N) such that ass+1ataa_s\\^a_{s+1}\\^…\\^a_t is maximum possible.
wata couldn't solve this problem, so he asked you, the friend of him and the excellent programmer, to solve this problem for him.


Input

The first line of the input file contains NN (1leqNleq1051 \\leq N \\leq 10^5).
The second line contains NN integers ai\\{a_i\\} (0leqai<2200 \\leq a_i < 2^{20}).

Output

Output the maximal value and the pair of (s,t)(s, t) which gives the maximum.
If there are multiple pairs, output the lexicographically smallest one.


Sample Input


5
1 2 3 4 5

Sample Output


7 3 4

Sample Input


3
3 3 3

Sample Output


3 1 1

Sample Input


4
1 2 4 8

Sample Output


15 1 4

Source Name

The First KMCMonthly Contest