#include <bits/stdc++.h>
using namespace std;
vector<int> P;
int main() {
  int n, m;
  scanf("%d %d", &n, &m);
  P.resize(n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &P[i]);
  }
  for (int i = 0; i < m; i++) {
    int l, r, x;
    scanf("%d %d %d", &l, &r, &x);
    l--, r--, x--;
    int xx = l;
    for (int e = l; e <= r; e++) {
      if (P[e] < P[x]) xx++;
      if (xx > x) break;
    }
    if (xx != x)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
  return 0;
}
