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

int main() {
  int n,k;
  cin>>n>>k;
  vector<int>a(n);
  for(int i=0;i<n;i++){
    cin>>a.at(i);
  }
  for(int i=0;i<n-k;i++){
    if(a.at(k+i)>a.at(i))
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }
}
