#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  scanf("%d %d", &n, &m);
  int arr[n + 1];
  for (int i = 1; i <= n; i++) scanf("%d", &arr[i]);
  while (m--) {
    int l, r, x;
    scanf("%d %d %d", &l, &r, &x);
    int k = 0;
    for (int i = l; i <= r; i++) {
      if (arr[i] < arr[x]) k++;
    }
    if (x - l == k)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
