// inputに入力データ全体が入る
function Main(input) {

    input = input.split("\n");
  
    line1 = input[0].split(" ");
    let N = parseInt(line1[0], 10);
    let K = parseInt(line1[1], 10);

    line2 = input[1].split(" ");



    let aryRslt = [];
    let hyoten = 0;
    let hyotenPre = 0;
    for (let i = K; i <= N; i++) {

        if (i >= K) {
            for (let j = i - K; j < i; j++) {
                let score = parseInt(line2[j], 10);
                if (hyoten === 0) {
                    hyoten = score;
                } else {
                    hyoten = hyoten * score;
                }
            }

            if (i > K) {
                if (hyoten > hyotenPre) {
                    aryRslt.push("Yes");
                } else {
                    aryRslt.push("No");
                }
            }
            hyotenPre = hyoten;
            hyoten = 0;
        }
    }

    for (let i = 0; i < aryRslt.length; i++) {
        //出力
        console.log(aryRslt[i]);
    }
}


Main(require("fs").readFileSync("/dev/stdin", "utf8"));