Interesting Sum
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given a three-digit positive integer . Find the sum of the largest and the smallest three-digit numbers that can be formed from a permutation of numbers.
Input
One integer .
Output
Print the sum of the largest and the smallest three-digit number.
Examples
Input #1
Answer #1
Submissions 9K
Acceptance rate 24%