#include <bits/stdc++.h>
using namespace std;
const int N = 10100;
int n, m, a[N], l, r, x;
int main() {
  scanf("%d%d", &n, &m);
  for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
  for (int i = 1; i <= m; i++) {
    scanf("%d%d%d", &l, &r, &x);
    int cnt = 0;
    for (int j = l; j <= r; j++)
      if (a[j] < a[x]) cnt++;
    puts(cnt == x - l ? "Yes" : "No");
  }
  return 0;
}
