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 (65300 - 356) * (65300 - 356) = 4217723136.
One positive integer n~(1 \le n \le 10^9).
Print the required square of difference.
Example 1