import Foundation

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

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

func readTwoInts(separator: String.Element = " ") -> (a: Int, b: Int) {
    let ints = readLine()!.split(separator: separator).map { Int($0)! }
    return (a: ints[0], b: ints[1])
}

func mainC() {
    let (N, K) = readTwoInts()
    let terms = readInts()

    var answer: [String] = []

    var previous = 1
    for i in K...N {
        var result = 1
        for j in 0..<K {
            result *= terms[i - 1 - j]
        }

        if i == K {
            // do nothing
        } else if result > previous {
            answer.append("Yes")
        } else {
            answer.append("NO")
        }

        previous = result
    }

    answer.forEach {
        print($0)
    }
}

mainC()