#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int i;
  int arr[n + 1];
  for (i = 0; i < n; i++) scanf("%d", &arr[i]);
  for (i = 0; i < m; i++) {
    int l, r, x;
    cin >> l >> r >> x;
    l--;
    r--;
    x--;
    int c = 0;
    for (int j = l; j <= r; j++) {
      if (arr[j] < arr[x]) c++;
    }
    if (l + c == x)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
}
