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

int main() {
  int N,K;cin>>N>>K;
  vector<long int> A(200000);
  for(int i=0;i<N;i++) cin>>A.at(i);
  for(int i=K;i<N;i++) {
    if(A.at(i-K)<A.at(i)) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  }
}
