Given four digits, your task is to form the largest and smallest possible numbers using these digits, and then calculate the difference between them.
You will receive four lines of input, each containing a single digit.
Output the difference between the largest and smallest numbers that can be created using the provided digits.
Example 1