#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t, i, j, n, a[100000], x, y, index, num, l, r, count, count1,
      temp;
  vector<int> vect;
  cin >> n >> t;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  while (t > 0) {
    count = 0;
    count1 = 0;
    cin >> x >> y >> index;
    index = index - 1;
    x = x - 1;
    y = y - 1;
    if (x <= index && index <= y) {
      for (i = index - 1; i >= x; i--) {
        if (a[index] < a[i]) {
          count++;
        }
      }
      for (i = index + 1; i <= y; i++) {
        if (a[index] > a[i]) {
          count1++;
        }
      }
      if (count == count1) {
        temp = 1;
      } else {
        temp = 0;
      }
    } else {
      temp = 1;
    }
    if (temp == 1) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
    t--;
  }
  return 0;
}
