Score: 300 points
M-kun is a student in Aoki High School, where a year is divided into N terms.
There is an exam at the end of each term. According to the scores in those exams, a student is given a grade for each term, as follows:
M-kun scored A_i in the exam at the end of the i-th term.
For each i such that K+1 \leq i \leq N, determine whether his grade for the i-th term is strictly greater than the grade for the (i-1)-th term.
Input is given from Standard Input in the following format:
N K A_1 A_2 A_3 \ldots A_N
Print the answer in N-K lines.
The i-th line should contain Yes
if the grade for the (K+i)-th term is greater than the grade for the (K+i-1)-th term, and No
otherwise.
5 3 96 98 95 100 20
Yes No
His grade for each term is computed as follows:
3 2 1001 869120 1001
No
Note that the output should be No
if the grade for the 3-rd term is equal to the grade for the 2-nd term.
15 7 3 1 4 1 5 9 2 6 5 3 5 8 9 7 9
Yes Yes No Yes Yes No Yes Yes