Square of maximum#8623

Square of maximum

1 second
128 megabytes
Very easy

Three-digit number is given. Rearrange its digits to get the maximum number (written with the same digits). Then this maximum number should be squared and printed.

Input

One three-digit positive integer.

Output

Print the square of maximum number.

Examples

Example 1

Loading
Loading