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


past = 0
score = 1
nums.each_with_index do |num, index|
  past = score
  score *= num
  if index < k
    next
  else
    score /= nums[index-k]
  end

  if score > past
    puts 'Yes'
  else
    puts 'No'
  end
end