N,K=list(map(int,input().split()))

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





tmp=1

before_score=0

for i in range(K,N):

  if i>=K-1:

    if i>=K:

      print(('Yes' if A[i-K]<A[i] else 'No'))

N,K=list(map(int,input().split()))

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



for i in range(K,N):

      print(('Yes' if A[i-K]<A[i] else 'No'))

N, K = list(map(int, input().split()))
A = list(map(int, input().split()))
tmp = 1
before_score = 0
for i in range(K, N):
    if i >= K - 1:
        if i >= K:
            print(("Yes" if A[i - K] < A[i] else "No"))

N, K = list(map(int, input().split()))
A = list(map(int, input().split()))
for i in range(K, N):
    print(("Yes" if A[i - K] < A[i] else "No"))

-tmp = 1 -before_score = 0 -    if i >= K - 1: -        if i >= K: -            print(("Yes" if A[i - K] < A[i] else "No")) +    print(("Yes" if A[i - K] < A[i] else "No"))