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

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



flag = 1

for i in range(N):

    if a[i] < a[i + K]:

        print('Yes')

    else:

        print("No")

    flag += 1

    if flag == N-K+1:

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

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



for i in range(N-K):

    if a[i] < a[i + K]:

        print('Yes')

    else:

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

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

-flag = 1 -for i in range(N): +for i in range(N - K): -    flag += 1 -    if flag == N - K + 1: -        break