Score : $400$ points
Given are a permutation $P=(P_1,P_2,\ldots,P_N)$ of $(1,2,\ldots,N)$ and a positive integer $K$.
For each $i=K,K+1,\ldots,N$, find the following.
Input is given from Standard Input in the following format:
$N$ $K$ $P_1$ $P_2$ $\ldots$ $P_N$
For each $i=K, K+1, \ldots, N$, in this order, print the specified value in Problem Statement, separated by newlines.
3 2 1 2 3
1 2
11 5 3 7 2 5 11 6 1 9 8 10 4
2 3 3 5 6 7 7