#include <bits/stdc++.h>
using namespace std;
const long long cls = 1000000007;
const int INF = 0x3f3f3f3f;
using namespace std;
int p[101000];
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  for (int i = 1; i < n + 1; i++) {
    scanf("%d", &p[i]);
  }
  int l, r, x, d, sum;
  while (m--) {
    scanf("%d%d%d", &l, &r, &x);
    sum = 0;
    d = x - l;
    for (int i = l; i < r + 1; i++) {
      if (p[i] < p[x]) {
        sum++;
        if (sum > d) break;
      }
    }
    if (d == sum) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
