#include<iostream>
using namespace std;

int a[200005];

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