#include <bits/stdc++.h>
using namespace std;
bool place(int p[], int l, int r, int x) {
  if (l > x || r < x)
    return true;
  else {
    int delta = 0;
    for (int i = l; i <= r; i++)
      if (p[i] > p[x]) delta++;
    if (x == (r - delta)) return true;
    return false;
  }
}
int main() {
  int n, m;
  cin >> n >> m;
  int *p = new int[n];
  for (int i = 0; i < n; i++) {
    cin >> p[i];
  }
  for (int i = 0; i < m; i++) {
    int l, r, x;
    cin >> l >> r >> x;
    if (place(p, l - 1, r - 1, x - 1))
      cout << "Yes" << '\n';
    else
      cout << "No" << '\n';
  }
  return 0;
}
