#include <bits/stdc++.h>
using namespace std;
bool cmp(int a, int b) { return a > b; }
template <class T>
T gcd(T a, T b) {
  return b ? gcd(b, a % b) : a;
}
template <class T>
T lcm(T a, T b) {
  return a * (b / gcd(a, b));
}
int n, m, p[5000005];
int main() {
  ios_base::sync_with_stdio(false);
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    cin >> p[i];
  }
  while (m--) {
    int l, r, x;
    cin >> l >> r >> x;
    l--;
    r--;
    x--;
    int ct = 0;
    for (int i = l; i <= r; i++) {
      if (p[i] < p[x]) ct++;
    }
    if ((x - l) == ct)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
