CF906E Reverses
Description
Hurricane came to Berland and to suburbs Stringsvill. You are going to it to check if it's all right with you favorite string. Hurrinace broke it a bit by reversing some of its non-intersecting substrings. You have a photo of this string before hurricane and you want to restore it to original state using reversing minimum possible number of its substrings and find out which substrings you should reverse.
You are given a string $ s $ — original state of your string and string $ t $ — state of the string after hurricane. You should select $ k $ non-intersecting substrings of $ t $ in such a way that after reverse of these substrings string will be equal $ s $ and $ k $ is minimum possible.
Input Format
N/A
Output Format
N/A