import scala.io.StdIn._

object Main extends App {

  val Array(n,k) = readLine().split(" ").map(_.toInt)
  val A = readLine().split(" ").map(_.toLong)

  def solve() = {
    (k until n).map { i =>
      if(A(i-k) < A(i)) "Yes" else "No"
    }.mkString("\n")
  }


  println(solve())

}

