import Foundation

let nk = readLine()!
    .split(separator: " ")
    .map { Int($0)! }
let n = nk[0]
let k = nk[1]
let ax = readLine()!
    .split(separator: " ")
    .map { Int($0)! }
var scores = [Int]()

for i in 0...n-k {
    let score = ax[i..<i+k].reduce(0, +)
    if let last = scores.last {
        print(last < score ? "Yes" : "No")
    }
    scores.append(score)
}
