AdvancedRating 1600
Calm Days
A day i is good if the values for the t days before it are non-increasing and the t days after it are non-decreasing (needs t days on both sides). Print the good days (0-based), or -1.
Input
n t, then n integers.
Output
One line.
Sample 1
Input
7 2 5 3 3 3 5 6 2
Output
2 3
Sample 2
Input
5 0 1 1 1 1 1
Output
0 1 2 3 4
Output appears here