Dominating Subarray

아직 제출이 없습니다시간 제한2초메모리 제한512 MB

문제

An array x_1,,x_x\_1, \ldots, x\_\ell is a subarray of an array y_1,,y_my\_1, \ldots, y\_m if there exists an integer ii from 11 to m+1m-\ell+1 such that the following equalities hold: y_i=x_1y\_i = x\_1, y_i+1=x_2y\_{i+1} = x\_2, \ldots, y_i+1=x_y\_{i+\ell-1} = x\_{\ell}.

A subarray b_1,,b_kb\_1, \ldots, b\_k of aa is kk-dominating if for any subarray c_1,,c_kc\_1, \ldots, c\_k of aa, the following inequalities hold: b_1c_1b\_1 \ge c\_1, b_2c_2b\_2 \ge c\_2, \ldots, b_kc_kb\_k \ge c\_k.

You are given an array a_1,,a_na\_1, \ldots, a\_n. Find any occurrence of a kk-dominating subarray of aa if it exists.

입력

The first line contains two integers nn and kk (1kn100,0001 \le k \le n \le 100\\,000), the length of the array aa and the parameter. The second line contains nn integers a_1,,a_na\_1, \ldots, a\_n (1a_i1061 \le a\_i \le 10^6), the elements of the array.

출력

Print "-1" if there is no kk-dominating subarray in aa. Otherwise, print an integer ii from 11 to nk+1n-k+1 such that a_i,,a_i+k1a\_i, \ldots, a\_{i+k-1} is a kk-dominating subarray of aa.