from itertools import accumulate

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

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

acc = [0]

acc.extend(list(accumulate(A)))

#print(acc)

scores = []

for i in range(K, N + 1):

  scores.append(acc[i] - acc[i - K])

#print(scores)

for i in range(1, N - K + 1):

  if scores[i] > scores[i - 1]:

    print('Yes')

  else:

    print('No')

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

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

ans = ['Yes' if A[i] > A[i - K] else 'No' for i in range(K, N)]

print(("\n".join(ans)))
from itertools import accumulate

N, K = list(map(int, input().split()))
A = list(map(int, input().split()))
acc = [0]
acc.extend(list(accumulate(A)))
# print(acc)
scores = []
for i in range(K, N + 1):
    scores.append(acc[i] - acc[i - K])
# print(scores)
for i in range(1, N - K + 1):
    if scores[i] > scores[i - 1]:
        print("Yes")
    else:
        print("No")

N, K = list(map(int, input().split()))
A = list(map(int, input().split()))
ans = ["Yes" if A[i] > A[i - K] else "No" for i in range(K, N)]
print(("\n".join(ans)))

-from itertools import accumulate - -acc = [0] -acc.extend(list(accumulate(A))) -# print(acc) -scores = [] -for i in range(K, N + 1): -    scores.append(acc[i] - acc[i - K]) -# print(scores) -for i in range(1, N - K + 1): -    if scores[i] > scores[i - 1]: -        print("Yes") -    else: -        print("No") +ans = ["Yes" if A[i] > A[i - K] else "No" for i in range(K, N)] +print(("\n".join(ans)))