#include <cstdio> 
#include <iostream>
#include <algorithm>
using namespace std;

int n,k;
int a[200005];
int main()
{
	int i;
	cin>>n>>k;
	for(i=1;i<=n;i++)
		cin>>a[i];
	for(i=k+1;i<=n;i++)
		if(a[i]>a[i-k]) cout<<"Yes"<<endl;
		else cout<<"No"<<endl;
	return 0;
}
