import std.array;
import std.conv;
import std.string;
import std.algorithm;
import std.bigint;
import std.stdio;

void main() {
	int n, k;
	readf("%s %s\n", &n, &k);
	auto a = readln.chomp.split(' ').map!(to!long).array;

	BigInt prev = "1";
	foreach (e;a[0..k]) {
		prev *= e;
	}

	BigInt current = "0";
	
	foreach (i;0..n - k) {
		current = prev / a[i] * a[k + i];

		if (current > prev) {
			writeln("Yes");
		} else {
			writeln("No");
		}

		prev = current;
	}
}
