Three-digit number#5628

Three-digit number

1 second
64 megabytes
Easy

Given a three-digit integer, your task is to rearrange its digits to form the smallest possible three-digit number.

Input

A single three-digit integer.

Output

The smallest three-digit number that can be formed by rearranging the digits of the input integer.

Examples

Example 1

Loading
Loading