#include <bits/stdc++.h>
using namespace std;
int pos[100001];
int arr[100001];
void init(int *arr, int *pos, int l, int r) {
  for (int i = l; i <= r; ++i) {
    arr[i] = pos[i];
  }
}
int main() {
  int n, m, val, pst, cnt1 = 0, cnt2 = 0;
  int l, r, x;
  scanf("%d %d", &n, &m);
  for (int i = 0; i < n; ++i) {
    scanf("%d", arr + i);
    pos[i] = arr[i];
  }
  while (m--) {
    scanf("%d %d %d", &l, &r, &x);
    l--;
    r--;
    x--;
    pst = arr[x];
    for (int i = x + 1; i <= r; ++i) {
      if (pst > arr[i]) {
        cnt1++;
      }
    }
    for (int i = x - 1; i >= l; --i) {
      if (pst < arr[i]) {
        cnt2++;
      }
    }
    if (cnt1 == cnt2) {
      printf("Yes\n");
    } else {
      printf("No\n");
    }
    cnt1 = 0;
    cnt2 = 0;
  }
  return 0;
}
