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