#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int m;
  cin >> n >> m;
  vector<int> zahlen(n);
  for (int i = 0; i < n; i++) cin >> zahlen[i];
  for (int i = 0; i < m; i++) {
    int l, r, x;
    cin >> l >> r >> x;
    l--;
    x--;
    r--;
    int tr = zahlen[x];
    int count = 0;
    for (int i = l; i <= r; i++) {
      if (zahlen[i] < tr) count++;
    }
    if ((l + count) == x)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
