object Main {
  def main(args: Array[String]): Unit = {
    val Array( semesters_num, k ) = scala.io.StdIn.readLine.split( " " ).map{ _.toInt }
    val scores                    = scala.io.StdIn.readLine.split( " " ).map{ _.toInt }

    ( k until semesters_num ).foreach{ i =>
      if( scores( i ) > scores( i - k ) ) println( "Yes" )
      else                                    println( "No" )
    }
  }
}