Order and join

There's something special about the input order.

Input

four
one
two
five
three
six

Output

one two three
four five
six