#include <bits/stdc++.h>
using namespace std;
mt19937_64 mt_rnd_64(chrono::steady_clock::now().time_since_epoch().count());
long long rnd(long long l, long long r) {
  return (mt_rnd_64() % (r - l + 1)) + l;
}
using ll = long long;
using ld = long double;
using ull = unsigned long long;
const double PI = acos(-1.0);
const ll mod = 1e9 + 9;
const ll INF = 1e9;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ll n, m;
  cin >> n >> m;
  vector<ll> a(n);
  for (ll &i : a) {
    cin >> i;
  }
  ll l, r, x;
  while (m--) {
    cin >> l >> r >> x;
    --l;
    --r;
    --x;
    ll c = 0;
    for (ll i = l; i <= r; ++i) {
      if (a[i] < a[x]) ++c;
    }
    if (l + c == x) {
      cout << "Yes\n";
    } else {
      cout << "No\n";
    }
  }
  return 0;
}
