A graph has r nodes in a line, numbered 1 to r. The edge joining node i and node i+1 has weight wi, and a weight can be positive or negative.
For i<j, the value of the path from node i to node j is the sum of the weights the path crosses, wi+wi+1+⋯+wj−1.
Write a program that finds the path with the largest value.
The first line contains the number of test cases n (1≤n≤100).
Each test case starts with the number of nodes r (2≤r≤50), followed by the integers w1,w2,…,wr−1. Here wi is the weight of the edge joining node i and node i+1, and −10000≤wi≤10000. Numbers are separated by whitespace or line breaks.
For each test case, print on one line the starting node i and the ending node j of the path with the largest value, separated by a space.
If several paths reach the largest value, choose the longest one, the one whose j−i is largest. If several paths share both the largest value and the same length, choose the one with the smallest i.
If the largest value is not positive, print no good path.