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