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

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

func main() {
    let nk = readIntList()
    let aList = readIntList()
    for i in nk[1]+1...nk[0] {
        let diff = aList[i-1] - aList[i-nk[1]-1]
        print(diff > 0 ? "Yes" : "No")
    }
}

main()
