#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 5;
const int MOD = 1000000007;
int a[300005];
int main() {
  int n, p;
  cin >> n >> p;
  for (int i = 1; i <= n; i++) cin >> a[i];
  while (p--) {
    int l, r, x;
    cin >> l >> r >> x;
    int lar = r - x;
    int num = a[x];
    int count = 0;
    for (int i = l; i <= r; i++) {
      if (a[i] > num) {
        count++;
      }
    }
    if (count == lar) {
      cout << "Yes" << endl;
    } else
      cout << "No" << endl;
  }
}
