#include <bits/stdc++.h>
int main() {
  int n, m;
  scanf("%d %d", &n, &m);
  std::vector<int> a;
  for (int i = 0; i < n; i++) {
    int q;
    scanf("%d", &q);
    a.push_back(q);
  }
  for (int i = 0; i < m; ++i) {
    int l, r, x;
    scanf("%d %d %d", &l, &r, &x);
    int t = a[x - 1], k = 1, k1 = -1;
    for (int j = l - 1; j < r; j++) {
      if (a[j] < t) {
        k++;
      } else if (a[j] == t) {
        k1++;
      }
    }
    (l - 1) + k == x || ((l - 1) + k < x && x - ((l - 1) + k) <= k1)
        ? printf("Yes\n")
        : printf("No\n");
  }
  return 0;
}
