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