#include <bits/stdc++.h>
using namespace std;
const long long mod = 1000000007ll;
int arr[100005];
int main() {
  int n, m;
  scanf("%d %d", &n, &m);
  for (int i = 1; i <= n; i++) scanf("%d", &arr[i]);
  while (m--) {
    int l, r, x;
    scanf("%d %d %d", &l, &r, &x);
    int cnt = 0;
    for (int i = l; i <= r; i++) {
      if (arr[i] < arr[x]) cnt++;
    }
    if (l + cnt == x)
      puts("Yes");
    else
      puts("No");
  }
  return 0;
}
