#include <stdio.h>
int n, k;
int a[200000];
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 - k] < a[i])printf("Yes\n");
		else printf("No\n");
	}
}