#include #include #include #include #include #define ll long long int #define vi vector #define all(c) c.begin(),c.end() #define mod 1000000007 using namespace std; int main() { int choice; int n,q; cin>>n>>q; string s; cin>>s; int str[n]; for(int i = 0;i>choice; switch(choice){ case 1: int i,j,t; cin>>i>>j>>t; for(int k = i;k<=j;k++){ str[k] = (str[k] + t - 1)%26 + 1; }; case 2: cin>>i>>j; int rep[27] ={},present = 0, count = 0; for(int k = i;k