#include<bits/stdc++.h>
using namespace std;
int main()
{
  int N;
  int K;
  cin>>N>>K;
  int V[N];
  for(int i = 0;i<N;i++)
  {
    cin>>V[i];
  }
  for(int i = K;i<N;i++)
  {
    if(V[i] > V[i-K]) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  }


}
