@staticmethod
def c():
    (n, k, *a) = map(int, sys.stdin.read().split())
    for i in range(k, n):
        print(('Yes' if (a[i] > a[(i - k)]) else 'No'))
@staticmethod
def c():
    (n, k, *a) = map(int, sys.stdin.read().split())
    for i in range(k, n):
        print(('Yes' if (a[i] > a[(i - k)]) else 'No'))