#include <bits/stdc++.h>
using namespace std;
vector<int> vec;
int main() {
  ios::sync_with_stdio(false);
  int n, m;
  cin >> n >> m;
  int temp;
  int l, r, x;
  vec.push_back(0);
  for (int i = 0; i < n; i++) {
    cin >> temp;
    vec.push_back(temp);
  }
  for (int i = 0; i < m; i++) {
    cin >> l >> r >> x;
    int kol = 0;
    for (int j = l; j <= r; j++) {
      if (vec[j] < vec[x]) kol++;
    }
    if (kol == x - l) {
      cout << "Yes";
    } else {
      cout << "No";
    }
    cout << endl;
  }
  return 0;
}
