function main(input) {
  let inputs = input.split(/\n/);
  let args = inputs[1].split(/\s/);
  let N = inputs[0].split(/\s/)[0];
  let K = inputs[0].split(/\s/)[1];
  let scores = [];
  for (i = 0;i < N - K + 1;i++) {
    scores[i] = 1;
    for (j = 0;j < K;j++) {
      scores[i] *= args[i + j];
    }
  }
  for (i = 0;i < scores.length - 1;i++) {
    if (scores[i] < scores[i + 1]) {
      console.log('Yes');
    } else {
      console.log('No');
    }
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));