Given positive integer n. Find and print the square of difference between the maximum and minimum numbers, composed from the digits of number n.
For example, if given number is 30605, the maximum number, composed from its digits, is 65300, and minimum number is 356 (the minimum is 00356, but leading zeros are not counted). The required square of difference is (65300−356)∗(65300−356)=4217723136.
One positive integer n (1≤n≤109).
Print the required square of difference.