n,k = list(map(int,input().split()))
prod = 1
l = list(map(int,input().split()))
for i in range(k):
    prod*=l[i]

prev = prod
idx = 0
for i in range(k,n):
    new_prod = prev/l[idx]
    new_prod *= l[i]
    idx+=1
    if(new_prod>prev):
        print('Yes')
    else:
        print('No')
    prev = new_prod