console.log((args=>{
  const [[N,K],A] = args.trim().split`\n`.map(r=>r.split` `.map(v=>v|0));
  let p = [];
  for ( let i = 0; i < N-K; i++ ) {
    p.push( (A[i] < A[i+K])?'Yes':'No' );
  }
  return p.join`\n`;
})(require('fs').readFileSync('/dev/stdin', 'utf8')));
