XadillaX likes to play with strings very much.
His favorite string is palindrome. Once he come across with a string, XadillaX always wants to change it to a palindrome by resorting the letters.
Now give you a string, you should tell him whether the string can be changed to a palindrome. If yes, you should output it. (The smallest one in Lexicographic order)
For each case, if it can be changed to a palindrome, output it. If can't, output 0.