9348 - Alphabetically order   

Description

Given two strings, output them in alphabetical order.
Note: the order is AaBbCcDd ... YyZz.

Input

For each case a line, there are two strings separated by a single space. The lengths of the strings are no more than 30.
Case 1: line <= 500
Case 2: line <= 15000
Case 3: line <= 25000
Case 4: line <= 35000

Output

For each case a line, output the two strings in alphabetical order, separated by a single space.

Sample Input  Download

Sample Output  Download

Tags




Discuss