#include <bits/stdc++.h>
using namespace std;
int a[10004], b[10004];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n, m;
  cin >> n >> m;
  for (int i = 1; i <= n; i++) cin >> a[i];
  while (m--) {
    int l, r, index;
    cin >> l >> r >> index;
    int c = 0, d = 0;
    for (int i = l; i <= r; i++)
      if (a[i] < a[index])
        c++;
      else if (a[i] == a[index])
        d++;
    index -= (l - 1);
    if (index > c && index <= c + d)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
