Square of maximum
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Three-digit number is given. Rearrange its digits so that 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
Input #1
Answer #1
Submissions 11K
Acceptance rate 38%