object Main extends App {
  val sc = new java.util.Scanner(System.in)
  var n,k = sc.nextInt()
  var a = Array.fill(n)(sc.nextInt())
  var v = Array.fill(n+5)(0:BigInt)
  v(k-1) = 0
  v(k) = ans(k,a,k)
  for (i <- k+1 to n){
    v(i) = (v(i-1) / a(i-k-1)) * a(i-1)
    println(if(v(i-1) < v(i)) "Yes" else "No")
  }

  def ans(s:Int,a:Array[Int],k:Int): BigInt ={
    var anss:BigInt = 1
    for (i <- s-k until s){
      anss *= a(i)
    }
    return  anss
  }
}
