#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, K;
  cin >> N >> K;
  vector<int> A(N);
  for (long long i = 0; i < (long long)(N); i++) {
    cin >> A[i];
  }
  vector<long long> score(N, 1);
  for (long long j = 0; j < (long long)(K); j++) {
    score[K - 1] *= A[K - j];
  }
  for (int i = K; i < N; i++) {
    score[i] = score[i - 1] / A[i - K] * A[i];
  }
  for (int i = K; i < N; i++) {
    cout << (score[i - 1] < score[i] ? "Yes" : "No") << endl;
  }
}
