You are given two non-empty strings and of equal lengths. contains the characters , and , whereas contains and only. Your task is to convert into in minimum number of moves. In each move, you can
1. change a in to 2. change a in to or 3. swap any two characters in
As an example, suppose S = 01??00 and T = 001010. We can transform into in moves:
- Initially S = 01??00 - Move – change S_2 to . becomes - Move – change S_3 to . becomes - Move – swap S_1 with S_4. becomes - is now equal to
The first line is an integer (t \le 200) that indicates the number of test cases. Each case consists of two lines. The first line is the string consisting of , and . The second line is the string consisting of and . The lengths of the strings won't be larger than .
For each case, output the case number first followed by the minimum number of moves required to convert into . If the transition is impossible, output instead.
Example 1