well string sabsasa1 sb 1abs substre string ss1s2 ss s length string sThe trace nonempty string t set character string consist for example trace string aab equal bLets consider arbitrary string s set substring trace equal c we denote number substring set maximal inclusion rcs substre sab length nba1 belong set call maximal inclusion substre sxy set length great n 1xabys two substring string s consider different equal locate different position sPolycarpus got challenge practical task stringology exam he follow give string s nonempty set character C1 C2 Cm find rCis set Ci Help Polycarpus solve problem do not want expel university army