import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val N, K = sc.nextInt
  val A = Array.fill(N)(sc.nextInt)

  var x = A.slice(0, K).product
  for (i <- K + 1 to N) {
    val y = A.slice(i - K, i).product
    val z = if (y > x) "Yes" else "No"
    println(z)
    x = y
  }
}
