#include <bits/stdc++.h>
using namespace std;

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