function main(lines) {
  const [N, K] = splitN(lines[0]);
  const as = lines[1].split(' ').map(BigInt);

  let acc = [BigInt(1)];
  for (let i = 1; i <= N; i++) {
    acc.push(acc[i-1] * as[i-1]);
  }
  const ans = [];
  for (let i = K+1; i <= N; i++) {
    const res = acc[i] / acc[i-K] > acc[i-1] / acc[i-K-1] ? 'Yes' : 'No';
    ans.push(res);
  }
  
  return ans.join('\n');
}


const ans = main( require("fs").readFileSync("/dev/stdin", "utf8").trim().split("\n") );
console.log( ans );

function splitN(s) {
  return s.split(' ').map(Number);
}