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.nextInt)

  for (i <- K + 1 to N) {
    val z = if (A(i - 1) > A(i - K - 1)) "Yes" else "No"
    println(z)
  }
}
