#include using namespace std; using ll = long long; using vll = vector; ll query(ll l,ll r,ll k, vll &a){ ll cnt=0; for(ll i=l-1;i>n>>q; vll a(n); for(ll i=0;i>a[i]; vll result; for(ll i=0;i>l>>r>>k; result.push_back(query(l,r,k,a)); } for(ll i=0;i