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