import Foundation

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

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

for i in 1...nk[0] - nk[1]{
  let e = i - 1
  if(A[e + nk[1]] > A[e]){
    print("Yes")
  }else{
    print("No")
  }
}