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