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