Given a connected, undirected graph G with N nodes and M edges. Every node has a value assigned to it, denoted by the array A.
An edge E is said to be special iff :
Among all the special edges, find the special edge with the maximum strength in the graph.
If there exists more than one answer, suppose edge E(a,b) and E′(a′,b′) where a<b & a′<b′
If there does not exists any such edge, return pair (n+1,n+1)
Input format
Output format
Print two space-separated integers a b, denoting the special edge with maximum strength. Please note a<b
Constraints
1≤N,M≤1051≤A[i]≤104
Both the edges in the test case are special.
Hence, the required answer is (1, 2).