#include #include using namespace std; using ll=long long; int main(){ ll n,q; cin>>n>>q; string s; cin>>s; vector> acmsum(n+1,vector(26,0)); for(ll i=0;i>l>>r>>x; vector curcount(26,0); for(ll j=0;j<26;j++){ x-=acmsum[r][j]-acmsum[l-1][j]; if(x<=0){ cout<<(char)('a'+j)<