#include <bits/stdc++.h>
using namespace std;
template <class T>
int size(const T &x) {
  return x.size();
}
const int INF = ~(1 << 31);
const double pi = acos(-1);
const double EPS = 1e-9;
int main() {
  cin.sync_with_stdio(false);
  int n, m;
  cin >> n >> m;
  vector<int> arr(n);
  int pos[1000000];
  for (int i = (0); i < (n); i++) cin >> arr[i];
  for (int i = (0); i < (m); i++) {
    int l, r, x;
    cin >> l >> r >> x;
    l--, r--;
    x--;
    if (l <= x && x <= r) {
      int cnt = 0;
      for (int i = (l); i < (r + 1); i++)
        if (arr[i] < arr[x]) cnt++;
      if (l + cnt != x)
        cout << "No" << endl;
      else
        cout << "Yes" << endl;
    } else {
      cout << "Yes" << endl;
    }
  }
  return 0;
}
