import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val N, K = sc.nextInt
  val A = Array.fill(N)(sc.nextLong)

  var a = A.slice(0, K)
  var x = a.product
  for (i <- K + 1 to N) {
    val y = x / A(i - K - 1) * A(i - 1)
    val z = if (y > x) "Yes" else "No"
    println(z)
    x = y
  }
}
