You are given an array of integers A of size N. Cost of a segment (L,R) is defined as (A[L]+A[L+1]+....+A[R]) - (A[L]⊕A[L+1]⊕....⊕A[R]) (where ⊕ denotes the Bitwise XOR operator).
Given a range (x,y), find the smallest subsegment (x′,y′) such that x≤x′≤y′≤y and its cost is maximum among all the subsegments of (x,y).
If there exists more than answer, print the subsegment with smallest x′.
Input format
Output format
Print two space separated integers x′ y′ denoting the subsegment.
Constraints
1≤N≤1050≤A[i]≤1091≤x≤y≤N
Since, we have more than one answer, we will return the answer where
Thus, required answer is (1,1)