#include <bits/stdc++.h>
using namespace std;
int a[10010];
int main() {
  int n, m;
  cin >> n >> m;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  while (m--) {
    int l, r, p;
    scanf("%d%d%d", &l, &r, &p);
    if (p < l || p > r) {
      printf("Yes\n");
      continue;
    }
    int cnt = 0;
    for (int i = l - 1; i < r; i++) {
      if (a[i] < a[p - 1]) cnt++;
    }
    if (a[l + cnt - 1] == a[p - 1])
      printf("Yes\n");
    else
      printf("No\n");
  }
  cin >> n;
  return 0;
}
