Your program has to output a single line of text for each test case. The line should contain a sequence of words separated by a space. The sequence must have the following properties:
1. Both input texts are subsequences of the output text, i.e., all words of each original text appear in the result in the same order, though they may be interleaved by other words.
2. Among all such possible texts, your output must contain the smallest possible number of words.
3. If there are several possibilities of the same length, choose the one that is lexicographically smallest. Output a space and a single dot "." after the last word of the declaration.
Text A is called to be lexicographically smaller than text B, if it "would be first in a regular dictionary". More exactly, if the first word that is different in both texts is lexicographically smaller in text A than in text B.
Similarly, word C is called to be lexicographically smaller then word D, if (a) for the first letter that is different in both words, the letter in word C comes earlier in the alphabet than the letter in word D, or (b) word C is shorter and it is a prefix of word D.