const input = require("fs").readFileSync("/dev/stdin", "utf8")

;(input => {

    const lines = input.split('\n')
    let [N, K] = lines[0].split(' ').map(Number)
    const A = lines[1].split(' ').map(Number)

    const s = Array(N).fill(0)
    for (let i = 0; i < K; i++) {
        s[K - 1] += A[i]
    }

    for (let i = K; i < N; i++) {
        s[i] = s[i - 1] - A[i - K] + A[i]
    }

    for (let i = K; i < N; i++) {
        console.log(s[i - 1] < s[i] ? 'Yes' : 'No')
    }    

})(input)
