#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int a[n + 5];
  int b[n + 5];
  memset(b, 0, sizeof(b));
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
  }
  while (m--) {
    int f, t, x;
    cin >> f >> t >> x;
    int d = 0;
    for (int i = f; i <= t; i++) {
      if (a[i] < a[x]) d++;
    }
    if (f + d == x) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
