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 scoreList = [Int](repeating: 0, count: nk[0]-nk[1]+1)
    for i in nk[1]...nk[0] {
        let score = aList[i-nk[1]...i-1].reduce(1, *)
        scoreList[i-nk[1]] = score
    }
    for i in 2...scoreList.count {
        print(scoreList[i-1] > scoreList[i-2] ? "Yes" : "No")
    }
}

main()

