require 'set'; require 'prime'; require 'pp'
INF=Float::INFINITY; MOD=10**9+7
n,k = gets.chomp.split.map(&:to_i)
a = gets.chomp.split.map(&:to_i)

k.upto(n-1) do |i|
  if a[i] > a[i - k]
    puts 'Yes'
  else
    puts 'No'
  end
end


