def main():

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

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



    for i in range(k,n):

        print(("Yes" if a[i] > a[i-k] else "No"))



if __name__ == '__main__':

    main()
def main():

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

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



    ans = []

    for i in range(k,n):

        ans.append("Yes" if a[i] > a[i-k] else "No")



    print(("\n".join(ans)))



if __name__ == '__main__':

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


if __name__ == "__main__":
    main()

def main():
    n, k = list(map(int, input().split()))
    a = list(map(int, input().split()))
    ans = []
    for i in range(k, n):
        ans.append("Yes" if a[i] > a[i - k] else "No")
    print(("\n".join(ans)))


if __name__ == "__main__":
    main()

+    ans = [] -        print(("Yes" if a[i] > a[i - k] else "No")) +        ans.append("Yes" if a[i] > a[i - k] else "No") +    print(("\n".join(ans)))