cho.sh
Notes
Loading...

Sort Digits Descending

Time limit

2s

Memory limit

128 MB

Problem

Given a natural number N, rearrange the digits of N in descending order to form a new number.

Input

The first line contains the natural number N. N is at most 1,000,000,000.

Output

Print the number formed by arranging the digits of N in descending order.