#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e4 + 5;
int a[maxn];
int main() {
  int n, m;
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &a[i]);
  }
  while (m--) {
    int l, r, x;
    scanf("%d%d%d", &l, &r, &x);
    int cnt1 = 0, cnt2 = 0;
    for (int i = l; i <= r; i++) {
      if (a[i] < a[x]) cnt1++;
      if (a[i] == a[x]) cnt2++;
    }
    if (cnt1 + l - 1 < x && cnt2 + cnt1 + l - 1 >= x)
      puts("Yes");
    else
      puts("No");
  }
  return 0;
}
