object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val N, K = sc.nextInt()
  val A = Array.fill(N)(sc.nextInt())
  0.until(N - K).foreach(i => println(if (A(i) < A(i + K)) "Yes" else "No"))
}
