One day, a brilliant idea came to Colin's mind.Given a string SSS with length nnn consisting of lowercase letters.Let SiS_iSi denotes the character of SSS with index iii , e.g. let S=S=S=abcthen S0=S_0=S0=a and S1=S_1=S1=b.Let S[l:r]S[l:r]S[l:r] denotes the substring of SSS with index form lll to rrr , e.g. let S=S=S=abc then S[1:2]=S[1:2]=S[1:2]=bc .Now we play a game on the string. You want to take as many turns successfully as you can.first choose two integers l,rl,rl,r satisfying 0≤l
One day, a brilliant idea came to Colin's mind.
Given a string SSS with length nnn (indexed from 000 to n−1n-1n−1 ) consisting of lowercase letters.
Let SiS_iSi denotes the character of SSS with index iii , e.g. let S=S=S= abc then S0=S_0=S0= a and S1=S_1=S1= b.
Let S[l:r]S[l:r]S[l:r] denotes the substring of SSS with index form lll to rrr , e.g. let S=S=S= abc then S[1:2]=S[1:2]=S[1:2]= bc .
Now we play a game on the string. You want to take as many turns successfully as you can.
In one turn, you should:
first choose two integers l,rl,rl,r satisfying 0≤l