#include <bits/stdc++.h>
using namespace std;
int n, m, x, l, r, i, s, a[10179];
int main() {
  cin >> n >> m;
  for (i = 1; i <= n; i++) cin >> a[i];
  while (m--) {
    cin >> l >> r >> x;
    for (s = 0, i = l; i <= r; i++)
      if (a[i] < a[x]) s++;
    if (s + l == x)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
}
