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

  (0 until N - K).foreach{i =>
    println(if (As(i + K) > As(i)) "Yes" else "No")
  }
}