~/algor $ cat problems/if-raqamlardan-eng-kichik-son
Smallest number from the digits
Medium
1000 ms
64 MB
40%
A three-digit positive integer $n$ is given. Find the smallest three-digit number that can be made by rearranging its three digits. The result must not start with zero.
Input
One three-digit positive integer $n$.
Output
One three-digit positive integer — the smallest number obtained.
Note
$100 \le n \le 999$
Examples
Input #1
310
Output #1
103
Input #2
352
Output #2
235