import Foundation

func readInt() -> [Int]{
    return readLine()!.split(separator:" ").map{Int($0)!}
}

let nk = readInt()
let A = readInt()

var array: [Int] = []
var n = 1
for i in A{
  n *= i
  array.append(n)
}

var score = array[nk[1] - 1]
for e in 1...nk[0] - nk[1]{
  let num = e - 1
  let kscore = array[num + nk[1]] / array[num]
  if(kscore > score){
    print("Yes")
  }else{
    print("N0")
  }
  score = kscore
}