#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, m;
  cin >> n >> m;
  int i, s[12000], c[12000];
  for (i = 1; i <= n; i++) {
    cin >> s[i];
  }
  while (m--) {
    int a, b, cn;
    cin >> a >> b >> cn;
    int cn1 = 0;
    if (cn < a || cn > b) {
      printf("Yes\n");
      break;
    } else {
      for (i = a; i <= b; i++) {
        if (s[i] < s[cn]) cn1++;
      }
      int zz = cn1;
      if (a + zz == cn)
        printf("Yes\n");
      else
        printf("No\n");
    }
  }
}
