NK = list(map(int, input().split(' ')))

N = NK[0]

K = NK[1]

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



for i in range(K, N):

    if (A[i-K] < A[i]):

        print('Yes')

    else:

        print('No')

def resolve():

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

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



    for i in range(k, n):

        if (A[i-k] < A[i]):

            print('Yes')

        else:

            print('No')



if __name__ == "__main__":

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

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


if __name__ == "__main__":
    resolve()

-NK = list(map(int, input().split(" "))) -N = NK[0] -K = NK[1] -A = list(map(int, input().split(" "))) -for i in range(K, N): -    if A[i - K] < A[i]: -        print("Yes") -    else: -        print("No") +def resolve(): +    n, k = list(map(int, input().split())) +    A = list(map(int, input().split())) +    for i in range(k, n): +        if A[i - k] < A[i]: +            print("Yes") +        else: +            print("No") + + +if __name__ == "__main__": +    resolve()