For two nonnegative integers a,b, let a∧b be their bitwise AND, and a∨b be their bitwise OR.
You are given an array A_0,A_1,…,A_2N−1 of length 2N consisting of nonnegative integers. Please find a pair of indices 0≤i,j≤2N−1 such that A_i+A_j<A_i∧j+A_i∨j, or state that no such pair exists. If there is more than one such pair, print any.
The first line contains an integer N.
The second line contains 2N integers, the array A given in order.
If there is an answer, output two integers i,j denoting the answer, separated by spaces. i,j should be in the range \[0,2N−1]. Otherwise, output -1.