Given positive integer . Find and print the square of difference between the maximum and minimum numbers, composed from the digits of number .
For example, if given number is , the maximum number, composed from its digits, is , and minimum number is (the minimum is , but leading zeros are not counted). The required square of difference is .
One positive integer .
Print the required square of difference.