#P2501D. 小柜的四级

小柜的四级

题目背景

threefootzhouaction!!! one year one du's four chicken will begin!!! xiaogugui'll participate it with full confidence.

题目描述

After the exam is over, xiaogui find him had two words aa and bb wrote wrong. He buxiaoxing swapped the first character of word aa with the first character of word bb. Please help him output the two correct words.

输入格式

The first line have one integer 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, quandoushi length 33. The strings only have lowercase Latin letters.

输出格式

For each test case, output two right 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

说明

In the first test case, please you guess.

If you find it hard to realize the problem, you can take a look at the English Ver. of this problem.