SP17821 MNIU - My Name is UMMM!

Description

``` My Name is UMMMM…. In a country far away there is a kind of a competition called programming contests. As they are becoming increasingly popular, they get regular coverage on newspapers. That's the only positive part of the story. The quality of their reports are not up to the mark and often hilarious for the competitive programming community. The reporters often mix up names - exchanging words from one person's name to someone else's name. Chowdhury Shaheb - a curious programmer analyzed the reports and found a very interesting pattern. He saw whenever any word of two person's names have the same first and last letters and at least one additional common letter, journalists will mix them up. For example: The words ‘Manjur’ and ‘Mazumder’ have same first and last letters and two common letters 'a' and 'u'. You'll be given a pair of names. List all possible confusing name variations of those two names. A confusing variation of a name is obtained by changing at least one word of that name to a similar word (according to the aforementioned pattern) from the other’s name. A variation is not considered confusing if it is exactly same to any of the given names. See the input and output format section for more details. Input First line of input will contain a single integer T (1

Input Format

N/A

Output Format

N/A