import scala.io.StdIn._

object Main extends App {

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

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


  println(solve())

}

