let NK = readLine()!.split(separator: " ").compactMap { Int($0) }
let n = NK[0]
let k = NK[1]

let AN = readLine()!.split(separator: " ").compactMap { Int($0) }

for i in 0..<n {
    if i < k {
        continue
    }

    if AN[i] - AN[i-k] > 0 {
        print("Yes")
    } else {
        print("No")
    }
}
