#include <bits/stdc++.h>
using namespace std;
int n, m;
int p[10010];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  cin >> n >> m;
  for (int i = 1; i <= n; ++i) cin >> p[i];
  for (int i = 1; i <= m; ++i) {
    int l, r, x;
    cin >> l >> r >> x;
    int a = 0;
    for (int j = l; j <= r; ++j) {
      if (p[j] < p[x]) a++;
    }
    if (a == x - l)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
