#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m, x, l, r, b;
  cin >> n >> m;
  vector<int> v(n), vcopy;
  for (int i = 0; i < n; i++) cin >> v[i];
  for (int i = 0; i < m; i++) {
    cin >> l >> r >> x;
    b = 0;
    for (int k = l - 1; k <= r - 1; k++) {
      if (v[k] < v[x - 1]) b++;
    }
    {
      if ((l - 1) + b == x - 1)
        cout << "Yes" << endl;
      else
        cout << "No" << endl;
    }
  }
  return 0;
}
