import sys, math, itertools, collections, bisect 

input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 

inf = float('inf') ;mod = 10**9+7 

mans = inf ;ans = 0 ;count = 0 ;pro = 1



import sys, math, itertools, collections, bisect 

input = lambda: sys.stdin.buffer.readline().rstrip().decode('utf-8') 

inf = float('inf') ;mod = 10**9+7 

mans = inf ;ans = 0 ;count = 0 ;pro = 1

 

n, k = list(map(int, input().split()))

A = list(map(int, input().split()))

for i in range(k-1, n):

    if i == k-1:

        continue

    else:

        if A[i] > A[i-k]:

            print("Yes")

        else:

            print("No")

        #print(A[i], A[i-k])
n, k = list(map(int, input().split()))

A = list(map(int, input().split()))

now = 1000

for i in range(k, n):

    #print(A[i], A[i-k])

    if A[i] > A[i-k]:

        print("Yes")

    else:

        print("No")
import sys, math, itertools, collections, bisect

input = lambda: sys.stdin.buffer.readline().rstrip().decode("utf-8")
inf = float("inf")
mod = 10**9 + 7
mans = inf
ans = 0
count = 0
pro = 1
import sys, math, itertools, collections, bisect

input = lambda: sys.stdin.buffer.readline().rstrip().decode("utf-8")
inf = float("inf")
mod = 10**9 + 7
mans = inf
ans = 0
count = 0
pro = 1
n, k = list(map(int, input().split()))
A = list(map(int, input().split()))
for i in range(k - 1, n):
    if i == k - 1:
        continue
    else:
        if A[i] > A[i - k]:
            print("Yes")
        else:
            print("No")
        # print(A[i], A[i-k])

n, k = list(map(int, input().split()))
A = list(map(int, input().split()))
now = 1000
for i in range(k, n):
    # print(A[i], A[i-k])
    if A[i] > A[i - k]:
        print("Yes")
    else:
        print("No")

-import sys, math, itertools, collections, bisect - -input = lambda: sys.stdin.buffer.readline().rstrip().decode("utf-8") -inf = float("inf") -mod = 10**9 + 7 -mans = inf -ans = 0 -count = 0 -pro = 1 -import sys, math, itertools, collections, bisect - -input = lambda: sys.stdin.buffer.readline().rstrip().decode("utf-8") -inf = float("inf") -mod = 10**9 + 7 -mans = inf -ans = 0 -count = 0 -pro = 1 -for i in range(k - 1, n): -    if i == k - 1: -        continue +now = 1000 +for i in range(k, n): +    # print(A[i], A[i-k]) +    if A[i] > A[i - k]: +        print("Yes") -        if A[i] > A[i - k]: -            print("Yes") -        else: -            print("No") -        # print(A[i], A[i-k]) +        print("No")