#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:1024000000,1024000000")
using namespace std;
const int maxn = 1e9 + 10;
const int INF = 1 << 30;
const long long LINF = 1LL << 60;
const double PI = acos(-1.0);
const double eps(1e-8);
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n, m;
  cin >> n >> m;
  vector<int> p(n + 1);
  for (int i = 1; i <= n; i += 1) cin >> p[i];
  while (m--) {
    int l, r, x;
    cin >> l >> r >> x;
    int tmp = 0;
    int pos = INF;
    for (int i = l; i <= r; i += 1) {
      tmp += (p[i] < p[x]);
      if (p[i] == p[x]) pos = (i - l);
    }
    if (pos == INF) {
      cout << "No" << endl;
      continue;
    }
    cout << (pos == tmp ? "Yes" : "No") << endl;
  }
  return 0;
}
