Write a program that reads several pairs of strings, and prints each pair in lexicographic order.
Recall that the comparison operator
in Python is defined for strings as the lexicographic order, that is,
the expression
evaluates to True if
is lexicographically smaller than
.
The input has several cases, each consisting of a pair of strings and .
For each case, you have to write a line with and in lexicographical order, separated by a whitespace
Input
hello bye bye hello a a aaa aba aba aaa aaa aab aab aaa abb ba ba abb
Output
bye hello bye hello a a aaa aba aaa aba aaa aab aaa aab abb ba abb ba