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