#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  int p[n];
  int i, j;
  for (i = 0; i < n; i++) cin >> p[i];
  for (i = 0; i < m; i++) {
    int l, r, x;
    cin >> l >> r >> x;
    l--;
    r--;
    x--;
    int len = r - l + 1;
    int a[len], k = 0;
    for (j = l; j <= r; j++) a[k++] = p[j];
    int llen = x - l;
    int rlen = r - x;
    int lcount = 0, rcount = 0;
    int flag = 0;
    for (j = 0; j < len; j++) {
      if (a[j] < p[x])
        lcount++;
      else if (a[j] > p[x])
        rcount++;
      if (lcount > llen) {
        flag++;
        break;
      }
      if (rcount > rlen) {
        flag++;
        break;
      }
    }
    if (flag == 0)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
