You are given an array A of length N whose indices start at 0. For two integers P and Q with 0≤P<Q<N, the subarray average A(P,Q) is defined as
A(P,Q)=Q−P+1∑i=PQA[i]
so a subarray average is the average of two or more consecutive elements.
For example, if N=3 with A[0]=3, A[1]=1, A[2]=2, the possible subarray averages are A(0,1)=2, A(0,2)=2, and A(1,2)=1.5. The smallest of them is A(1,2)=1.5.
Given the array A, find a pair (u,v) whose subarray average A(u,v) is minimal and print u. If several pairs reach the minimum, print the smallest u.