import Foundation

func main() {
    let split = readLine()!.components(separatedBy: " ").map{Int(String($0))!}
    let n = split[0]
    let k = split[1]
    let points = readLine()!.components(separatedBy: " ").map{Int(String($0))!}

    var nowPoint:Int64 = 1
    for i in k ... n-1 {
        if (points[i]>points[i-k]) {
            print("Yes") 
        } else {
            print("No")
        }
    }
}

main()