시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 (추가 시간 없음) 512 MB111100.000%

## 문제

An array $x_1, \ldots, x_\ell$ is a subarray of an array $y_1, \ldots, y_m$ if there exists an integer $i$ from $1$ to $m-\ell+1$ such that the following equalities hold: $y_i = x_1$, $y_{i+1} = x_2$, $\ldots$, $y_{i+\ell-1} = x_{\ell}$.

A subarray $b_1, \ldots, b_k$ of $a$ is $k$-dominating if for any subarray $c_1, \ldots, c_k$ of $a$, the following inequalities hold: $b_1 \ge c_1$, $b_2 \ge c_2$, $\ldots$, $b_k \ge c_k$.

You are given an array $a_1, \ldots, a_n$. Find any occurrence of a $k$-dominating subarray of $a$ if it exists.

## 입력

The first line contains two integers $n$ and $k$ ($1 \le k \le n \le 100\,000$), the length of the array $a$ and the parameter. The second line contains $n$ integers $a_1, \ldots, a_n$ ($1 \le a_i \le 10^6$), the elements of the array.

## 출력

Print "-1" if there is no $k$-dominating subarray in $a$. Otherwise, print an integer $i$ from $1$ to $n-k+1$ such that $a_i, \ldots, a_{i+k-1}$ is a $k$-dominating subarray of $a$.

## 예제 입력 1

5 3
1 2 3 3 3


## 예제 출력 1

3


## 예제 입력 2

3 2
1 2 1


## 예제 출력 2

-1