#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k;
  cin >> n >> k;
  vector<long long int> A;
  for (int i = 0; i < n; ++i) {
    long long int t;
    cin >> t;
    A.push_back(t);
  }
  vector<long long int> M, a;
  a.push_back(1);
  for (int i = 0; i < n; ++i) {
    a.push_back(A[i] * a[i]);
  }
  for (int i = 0; i < n - k + 1; i++) {
    long long int s;
    s = a[i + k] / a[i];
    M.push_back(s);
  }
  for (int i = 1; i < n - k + 1; ++i) {
    if (M[i] > M[i - 1])
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
