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