import scala.io.StdIn._

object Main extends App {

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

  def solve() = {
    val cSum = Array.fill(n)(0L)
    for(i <- k-1 until n) {
      if(i == k-1) {
        val score = (0 until k).foldLeft(1L) { (acc, j) =>
          acc * A(j)
        }
        cSum(i) = score
      } else {
        cSum(i) = cSum(i-1) / A(i-k) * A(i)
      }
    }
    (k until n).map { i =>
      if(cSum(i-1) < cSum(i)) "Yes" else "No"
    }.mkString("\n")
  }


  println(solve())

}

