n,k = gets.chomp.split(' ').map(&:to_i)
arr = gets.chomp.split(' ').map(&:to_i)
i = 0
basic_sum = 1
while i < k # 0 1 2
  basic_sum *= arr[k-1-i]
  i += 1
end
i = 0
plas_1_sum = 1
while i < arr.size - k
  j = 0
  while j < k
    plas_1_sum *= arr[k-j+i]
    j += 1
  end
  if basic_sum < plas_1_sum
    puts "Yes"
  else
    puts "No"
  end
  basic_sum = plas_1_sum
  plas_1_sum = 1
  i += 1
end