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