#include #include #include #include #include using namespace std; typedef long long ll; int brojac; string ss; set s; void dfs(string s1,int b,int ii,int jj) { if(s1!="") { vector v1(26,0); for(int i=0;i=ii&&i<=jj) dfs(s1+ss[i],i,ii,jj); } } } int main() { int n,q; cin>>n>>q; cin>>ss; for(int qq=0;qq>a; if(a==2) { int b,c; cin>>b>>c; brojac=0; s.clear(); dfs("",-1,b,c); cout<>b>>c>>broj; vector v; for(int i=0;i=b&&i<=c){ v[i]+=broj; v[i]%=26; } } ss=""; for(int i=0;i