object Main {
  def main(args: Array[String]): Unit = {
    import scala.io.StdIn.readLine
    val Array(datN, datK) = readLine.split(" ").map(_.toInt)
    val datA = readLine.split(" ").map(_.toInt)

    val score = for (i <- datK - 1 until datN) yield {datA.slice(i - (datK - 1), i + 1).product}
    //println(score)
    (1 until score.length) foreach {i =>
      if (score(i - 1) < score(i)) println("Yes") else println("No")
    }
  }
}
