#P2501D. 小柜的四级

小柜的四级

Background

Delta Force Go!!! Annual CET-4 will soon take place!! XG'll take it with full confidence.

Description

After the exam is over, XG found that he wrote two words aa and bb wrongly. He unexpectedly swapped the first character of Word aa and the first character of Word bb. Please help him correct the two words.

Input

The first line contains tt (1t100)(1 \leq t \leq 100) — the number of test cases.

The first and only line of each test case contains two space-separated strings, aa and bb, both of length 33. The strings only contain lowercase Latin letters.

Output

For each test case, output two correct words aa and bb.

6
sit bet
dat cog
dbc aef
owq qwo
kfc kfc
zzz zzz
bit set
cat dog
abc def
qwq owo
kfc kfc
zzz zzz

Note

In the first test case, swap the first character 's' in the first word "sit", and the first character 'b' in the second word "bet", we'll have "bit" and "set" in result.