object Main extends App {
    val sc = new java.util.Scanner(System.in)

    val n = sc.nextInt
    val k = sc.nextInt
    val a = IndexedSeq.fill(n)(sc.nextInt)
    for (i <- k until n) {
        println(if (a(i) > a(i-k)) "Yes" else "No")
    }

}