The user inputs one number. The program calculates the sum of the smallest one and the largest which can be made from its figures.