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

func readInt() -> Int {
    return Int(readLine()!)!
}

func main() {
    let nk = readIntList()
    let aList = readIntList()
    var lastSemesterScore = 0
    for i in nk[1]...nk[0] {
        let thisSemesterScore = aList[i-nk[1]...i-1].reduce(1, *)
        if i > nk[1] {
            print(thisSemesterScore > lastSemesterScore ? "Yes" : "No")
        }
        lastSemesterScore = thisSemesterScore
    }
}

main()
