ProgramID- 8109
SkillRack
Sort - Same Unit Digit

The program must accept three integers X, Y and Z as the input. Two of these three integers will have same unit digit. The program must the print smallest integer among the integers which are having the same unit digit. Then the program must print the largest integer among the integers which are having the same unit digit. Finally, the program must print the remaining integer as the output.

Example Input/Output 1:
Input:
72 29 12

Output:
12 72 29

Example Input/Output 2:
Input:
10 5 90

Output:
10 90 5


Max Execution Time Limit: 4000 millisecs