Barbara is a speed typer. In order to check her typing speed, she performs a speed test. She is given a string that she is supposed to type.
While Barbara is typing, she may make some mistakes, such as pressing the wrong key. As her typing speed is important to her, she does not want to spend additional time correcting the mistakes, so she continues to type with the errors until she finishes the speed test. After she finishes the speed test, she produces a .
Now she wonders how many extra letters she needs to delete in order to get from . It is possible that Barbara made a mistake and cannot be converted back to just by deleting some letters. In particular, it is possible that Barbara missed some letters.
Help Barbara find out how many extra letters she needs to remove in order to obtain or if cannot be obtained from by removing letters then output IMPOSSIBLE.
输入格式
The first line of the input gives the number of test cases, . test cases follow.
Each test case has lines. The first line of each test case is an input string (that denotes the string that the typing test has provided). The next line is the produced string (that Barbara has entered).
输出格式
For each test case, output one line containing Case : , where is the test case number (starting from ) and is the number of extra letters that need to be removed in order to obtain . If it is not possible to obtain then output IMPOSSIBLE as .