~/algor $ cat problems/while/largest-number-from-the-digits
Largest number from the digits
Medium
1000 ms
64 MB
47%
A positive integer is given. Find the largest number that can be obtained by rearranging its digits (each digit is used as many times as it occurs; for example, ).
Input
One positive integer .
Output
One integer — the largest number obtained.
Note
Examples
Input #1
30521
Output #1
53210
Input #2
1000
Output #2
1000