#include <bits/stdc++.h>
using namespace std;
double pi = 3.141592653589793238462;
string numkey = "0123456789";
string uni = "abcdefghijklmnopqrstuvwxyz";
signed main() {
  long long int n, m;
  cin >> n >> m;
  vector<long long int> arr(n + 1);
  for (long long int i = 1; i <= n; i++) {
    cin >> arr[i];
  }
  for (long long int i = 0; i < m; i++) {
    long long int l, r, pos;
    cin >> l >> r >> pos;
    long long int ctr = 0;
    long long int e = arr[pos];
    ctr += (l - 1);
    for (long long int i = l; i <= r; i++) ctr += (arr[i] < e);
    if (ctr == pos - 1) {
      cout << "Yes\n";
    } else
      cout << "No\n";
  }
}
