A regular palindrome is a string of numbers or letters that reads the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it reads the same from left to right as from right to left.
A mirrored string is a string that stays the same when each of its characters is replaced by its reverse (its mirror image; if it has one, see the table below) and the resulting string is read backward. For example, "3AIAE" is a mirrored string because "A" and "I" are their own reverses, and "3" and "E" are each other's reverses.
A mirrored palindrome is a string that satisfies both the palindrome condition and the mirrored-string condition. For example, "ATOYOTA" is a mirrored palindrome: reading it backward gives the original string, and replacing every character by its reverse and reading the result backward also gives the original string. Of course, "A", "T", "O", and "Y" are all their own reverses.
The complete list of valid characters and their reverses is given below. A blank cell means the character has no reverse.
| Character | Reverse | Character | Reverse | Character | Reverse |
|---|---|---|---|---|---|
| A | A | M | M | Y | Y |
| B | N | Z | 5 | ||
| C | O | O | 1 | 1 | |
| D | P | 2 | S | ||
| E | 3 | Q | 3 | E | |
| F | R | 4 | |||
| G | S | 2 | 5 | Z | |
| H | H | T | T | 6 | |
| I | I | U | U | 7 | |
| J | L | V | V | 8 | 8 |
| K | W | W | 9 | ||
| L | J | X | X |
Note: 0 (zero) and O (the letter) are considered the same character, so only the letter "O" is a valid character.
The input consists of strings, one per line, each made up of 1 to 20 valid characters. No string contains an invalid character. Your program should read until the end of file.
For each input string, print the string starting in column 1, immediately followed by exactly one of the four phrases below.
-- is not a palindrome. if it is neither a palindrome nor a mirrored string -- is a palindrome. if it is a palindrome but not a mirrored string -- is a mirrored string. if it is a mirrored string but not a palindrome -- is a mirrored palindrome. if it is both a palindrome and a mirrored stringThus each output line has the form <string> -- <phrase>. Print one blank line between consecutive output lines.