Sorting of Letters#189

Sorting of Letters

1 second
128 megabytes
Very easy (≈850)

A string consisting only of lowercase letters is given. It is necessary to sort the characters in this string in ascending and descending order according to their ASCII codes.

Input

The input is a string consisting only of lowercase letters, with a length of no more than 100 characters.

Output

The first line should provide the characters sorted in ascending order according to their ASCII code, while the second line should provide them in descending order.

Examples

Example 1

Loading
Loading