#include <bits/stdc++.h>
using namespace std;
int p[10005];
int main() {
  int i, j, k, l, m, n, x, r;
  cin >> n >> m;
  for (i = 0; i < n; i++) {
    cin >> p[i];
  }
  for (i = 0; i < m; i++) {
    cin >> l >> r >> x;
    int countt = 0;
    l--;
    r--;
    x--;
    for (j = l; j <= r; j++) {
      if (p[j] < p[x]) {
        countt++;
      }
    }
    if (countt == x - l) {
      cout << "Yes" << endl;
    } else
      cout << "No" << endl;
  }
  return 0;
}
