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