Competitions
Week 2 Conditionals Part 2
Square of maximum
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 data
One three-digit positive integer.
Output data
Print the square of maximum number.
Examples
Input example #1
327
Output example #1
535824