object Main extends App {
  val in = new java.util.Scanner(System.in)
  val N, K = in.nextInt
  val As = List.fill(N)(in.nextInt)

  val ans = (0 until N - K).map{i =>
    if (As(i + K) > As(i)) "Yes" else "No"
  }
  println(ans.mkString("\n"))
}