inp = require('fs').readFileSync('/dev/stdin', 'utf8').trim().split('\n')
l = inp.shift().split(' ')
N = l.shift() * 1
K = l.shift() * 1 
a = inp.shift().split(' ').map(x => +x)
for (i=0; i<N-K; i++) {
    console.log(a[i] < a[i+K] ? "Yes" : "No")
}
