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)

    def recScoring(idx: Int) : Unit = {
      if (idx >= datA.length) return
      if (datA(idx) > datA(idx - datK)) println("Yes")
      else println("No")
      recScoring(idx + 1)
    }
    recScoring(datK)
  }
}
