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