A natural number is given. You need to find the sum of the largest number and the smallest number that can be formed using the digits of this number. For example, if n = 56002, then the largest number is and the smallest number is (leading zeros in the number are not considered). The sum of these numbers will be 65200 + 256 = 65456.
In a single line, (0 \leq n \leq 10^8).
Output the answer to the problem.
Example 1