# -*- coding: utf-8 -*-



def main():

    import sys

    import math



    N,K = list(map(int, sys.stdin.readline().split()))

    A_list = list(map(int, sys.stdin.readline().split()))



    for i in range(len(A_list)):

        A_list[i] = math.log10( A_list[i] )





    point_K = 0

    

    for i in range(K):

        point_K += A_list[i]





    prev = point_K



    for i in range(K, len(A_list)):

        current = prev - A_list[i-K] + A_list[i]



        if current > prev:

            print("Yes")

        else:

            print("No")

        

        prev = current





if __name__ == "__main__":

    main()

# -*- coding: utf-8 -*-

import sys





def main():

    N,K = list(map(int, sys.stdin.readline().split()))

    A_list = list(map(int, sys.stdin.readline().split()))

    



    for i in range(K, len(A_list)):

        if A_list[i] > A_list[i-K]:

            print("Yes")

        else:

            print("No")







if __name__ == "__main__":

    main()

# -*- coding: utf-8 -*-
def main():
    import sys
    import math

    N, K = list(map(int, sys.stdin.readline().split()))
    A_list = list(map(int, sys.stdin.readline().split()))
    for i in range(len(A_list)):
        A_list[i] = math.log10(A_list[i])
    point_K = 0
    for i in range(K):
        point_K += A_list[i]
    prev = point_K
    for i in range(K, len(A_list)):
        current = prev - A_list[i - K] + A_list[i]
        if current > prev:
            print("Yes")
        else:
            print("No")
        prev = current


if __name__ == "__main__":
    main()

# -*- coding: utf-8 -*-
import sys


def main():
    N, K = list(map(int, sys.stdin.readline().split()))
    A_list = list(map(int, sys.stdin.readline().split()))
    for i in range(K, len(A_list)):
        if A_list[i] > A_list[i - K]:
            print("Yes")
        else:
            print("No")


if __name__ == "__main__":
    main()

+import sys + + -    import sys -    import math - -    for i in range(len(A_list)): -        A_list[i] = math.log10(A_list[i]) -    point_K = 0 -    for i in range(K): -        point_K += A_list[i] -    prev = point_K -        current = prev - A_list[i - K] + A_list[i] -        if current > prev: +        if A_list[i] > A_list[i - K]: -        prev = current