#include <cstdio>

const int N = 200000;
int n, k, a[N];

int main() 
{
	scanf("%d%d", &n, &k);
	for (int i = 0; i < n; ++i) scanf("%d", a + i);
	for (int i = k; i < n; ++i) {
		if (a[i] > a[i - k]) printf("Yes\n");
		else printf("No\n");
	}
	return 0;
}
