nk = gets
a = gets.split(" ")

n = nk.split(" ")[0].to_i
k = nk.split(" ")[1].to_i

hyouten = []

cnt = 0
while true do
  break if cnt > n - k

  i = k-k+cnt
  (i..i+k-1).each do |idx|
    hyouten[cnt] = (hyouten[cnt] || 1) * a[idx].to_i
  end

  if cnt >= 1
    if hyouten[cnt] > hyouten[cnt-1]
      puts "Yes"
    else
      puts "No"
    end
  end

  cnt += 1
end
