#include <bits/stdc++.h>
using namespace std;
const int NUM = 2e5 + 5;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int num_tests = 1;
  while (num_tests-- > 0) {
    int n, m;
    cin >> n >> m;
    vector<int> p(n);
    for (long long int i = 0; i < n; i++) cin >> p[i];
    map<int, int> orig;
    for (long long int i = 0; i < n; i++) orig[p[i]] = i;
    while (m--) {
      int l, r, x;
      cin >> l >> r >> x;
      int num = p[x - 1];
      int ans = 0;
      for (long long int i = l - 1; i < r; i++) {
        if (p[i] < num) ans++;
      }
      if (l + ans == x)
        cout << "Yes"
             << "\n";
      else
        cout << "No"
             << "\n";
    }
  }
}
