Interesting Sum ⬀
Given a three-digit positive integer n. Find the sum of the largest and the smallest three-digit numbers that can be formed from a permutation of n numbers.
One integer n (100 ≤ n ≤ 999).
Print the sum of the largest and the smallest three-digit number.
524
787