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

int main() {
  long N, K;
  cin >> N >> K;
  vector<long> A(N);
  for (long i = 0; i < N; i++) cin >> A.at(i);
  for (long i = K; i < N; i++) {
    cout << ((A.at(i) > A.at(i - K)) ? "Yes" : "No") << "\n";
  }
}