import std.stdio, std.string, std.conv, std.range, std.array, std.algorithm;
import std.uni, std.math, std.container, std.typecons, std.typetuple;
import core.bitop, std.datetime;

void main(){
    int N, M, l, r, x;

    readVars(N, M);
    auto p = readln.split.to!(int[]);

    int cnt;

    foreach(i ; 0 .. M){
        readVars(l, r, x);
        l--;
        x--;

        cnt = 0;

        foreach(j ; l .. r){
            cnt += (p[j] < p[x]);
        }

        if (cnt == x - l) {
            writeln("Yes");
        } else {
            writeln("No");
        }
    }
}

void readVars(T...)(auto ref T args){
    auto line = readln.split;
    foreach(ref arg ; args){
        arg = line.front.to!(typeof(arg));
        line.popFront;
    }
    if(!line.empty){
        throw new Exception("args num < input num");
    }
}