#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios::sync_with_stdio(0);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  int b[n];
  for (int i = 0; i < n; i++) {
    cin >> b[i];
  }
  while (m--) {
    int l, r, x;
    cin >> l >> r >> x;
    if (x > r || x < l) {
      cout << "Yes\n";
      continue;
    }
    l--;
    r--;
    x--;
    int c = 0;
    for (int i = l; i <= r; i++) {
      if (i == x) continue;
      if (b[i] < b[x]) c++;
    }
    if (x == l + c)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
}
