n,k=gets.split.map(&:to_i)
a=gets.split.map(&:to_i)

for i in k ..n
    v=1
    for j in 1..k
        v=v*a[i-j]
    end
    if i==k
        before=v
        next
    end
    #p v
    if before<v
        puts "Yes"
    else
    puts "No"
    end
    before=v
end