#P1985A. Creating Words
Creating Words
Description
Matthew is given two strings and , both of length . He thinks it's particularly funny to create two new words by swapping the first character of with the first character of . He wants you to output and after the swap.
Note that the new words may not necessarily be different.
The first line contains () — the number of test cases.
The first and only line of each test case contains two space-separated strings, and , both of length . The strings only contain lowercase Latin letters.
For each test case, after the swap, output and , separated by a space.
Input
The first line contains () — the number of test cases.
The first and only line of each test case contains two space-separated strings, and , both of length . The strings only contain lowercase Latin letters.
Output
For each test case, after the swap, output and , separated by a space.