nk = gets.split(" ").map(&:to_i)
n = nk[0]
k = nk[1]
num = gets.split(" ").map(&:to_i)

score = 1

n.times do |i|
  if (i < k)
    score = score * num[i]
  else
    before = score
    score = score / num[i - k] * num[i]
    if (before < score)
      puts "Yes"
    else
      puts "No"
    end
  end
end
