N, K = gets.split.map(&:to_i)
A = gets.split.map(&:to_i)

hyoten = 1
K.times do |j|
  hyoten *= A[K - j - 1]
end
hyotens = []
hyotens << hyoten
(K+1..N).map do |i|
  hyoten =  hyoten * A[i - 1] / A[i - K - 1]
  hyotens << hyoten
end

(N-K).times do |i|
  if hyotens[i] < hyotens[i+1]
    print "Yes\n"
  else
    print "No\n"
  end
end