{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003e A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string \u003ctt\u003eABCDEDCBA\"\u003c/tt\u003e is a palindrome because it is the same when the string is read from left to right as when the string is read from right to left. \u003c/p\u003e\n\u003cp\u003e \u003c/p\u003e\n\u003cp\u003e \u003cbr\u003e A mirrored string is a string for which when each of the elements of the string is changed to its reverse (if it has a reverse) and the string is read backwards the result is the same as the original string. For example, the string \u003ctt\u003e3AIAE\"\u003c/tt\u003e is a mirrored string because \u003ctt\u003eA\"\u003c/tt\u003e and \u003ctt\u003eI\"\u003c/tt\u003e are their own reverses, and \u003ctt\u003e3\"\u003c/tt\u003e and \u003ctt\u003eE\"\u003c/tt\u003e are each others\u0027 reverses. \u003c/p\u003e\n\u003cp\u003e \u003c/p\u003e\n\u003cp\u003e \u003cbr\u003e A mirrored palindrome is a string that meets the criteria of a regular palindrome and the criteria of a mirrored string. The string \u003ctt\u003eATOYOTA\"\u003c/tt\u003e is a mirrored palindrome because if the string is read backwards, the string is the same as the original and because if each of the characters is replaced by its reverse and the result is read backwards, the result is the same as the original string. Of course, \u003ctt\u003eA\"\u003c/tt\u003e, \u003ctt\u003eT\"\u003c/tt\u003e, \u003ctt\u003eO\"\u003c/tt\u003e, and \u003ctt\u003eY\"\u003c/tt\u003e are all their own reverses. \u003c/p\u003e\n\u003cp\u003e \u003c/p\u003e\n\u003cp\u003e \u003cbr\u003e A list of all valid characters and their reverses is as follows. \u003c/p\u003e\n\u003cp\u003e \u003c/p\u003e\n\u003cp\u003e \u003cbr\u003e \u003c/p\u003e\n\u003cdiv align\u003d\"CENTER\"\u003e \n \u003ctable cols\u003d\"6\"\u003e \n \u003ccolgroup\u003e\n \u003ccol ALIGN\u003d\"CENTER\"\u003e\n \u003ccol ALIGN\u003d\"CENTER\"\u003e\n \u003ccol ALIGN\u003d\"CENTER\"\u003e\n \u003ccol ALIGN\u003d\"CENTER\"\u003e\n \u003ccol ALIGN\u003d\"CENTER\"\u003e\n \u003ccol ALIGN\u003d\"CENTER\"\u003e \n \u003c/colgroup\u003e\n \u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003cspan id\u003d\"txt62\"\u003eCharacter \u003c/span\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003cspan id\u003d\"txt63\"\u003eReverse \u003c/span\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003cspan id\u003d\"txt64\"\u003eCharacter \u003c/span\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003cspan id\u003d\"txt65\"\u003eReverse \u003c/span\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003cspan id\u003d\"txt66\"\u003eCharacter \u003c/span\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003cspan id\u003d\"txt67\"\u003eReverse \u003c/span\u003e\u003c/td\u003e\n \u003c/tr\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eA\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eA\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eM\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eM\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eY\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eY\u003c/tt\u003e \u003c/td\u003e\n \u003c/tr\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eB\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eN\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eZ\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e5\u003c/tt\u003e \u003c/td\u003e\n \u003c/tr\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eC\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eO\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eO\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e1\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e1\u003c/tt\u003e \u003c/td\u003e\n \u003c/tr\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eD\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eP\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e2\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eS\u003c/tt\u003e \u003c/td\u003e\n \u003c/tr\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eE\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e3\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eQ\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e3\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eE\u003c/tt\u003e \u003c/td\u003e\n \u003c/tr\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eF\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eR\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e4\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003c/tr\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eG\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eS\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e2\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e5\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eZ\u003c/tt\u003e \u003c/td\u003e\n \u003c/tr\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eH\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eH\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eT\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eT\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e6\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003c/tr\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eI\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eI\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eU\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eU\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e7\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003c/tr\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eJ\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eL\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eV\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eV\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e8\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e8\u003c/tt\u003e \u003c/td\u003e\n \u003c/tr\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eK\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eW\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eW\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003e9\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003c/tr\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eL\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eJ\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eX\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap\u003e \u003ctt\u003eX\u003c/tt\u003e \u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003c/tr\u003e \n \u003c/tbody\u003e\n \u003c/table\u003e \n\u003c/div\u003e \n\u003cp\u003e \u003c/p\u003e\n\u003cp\u003e\u003c/p\u003e\n\u003cp\u003e \u003cbr\u003e Note that O (zero) and 0 (the letter) are considered the same character and therefore \u003cb\u003eONLY\u003c/b\u003e the letter \"0\" is a valid character. \u003c/p\u003e\n\u003cp\u003e\u003cb\u003eInput\u003c/b\u003e\u003c/p\u003e\n\u003cp\u003e Input consists of strings (one per line) each of which will consist of one to twenty valid characters. There will be no invalid characters in any of the strings. Your program should read to the end of file. \u003c/p\u003e\n\u003cp\u003e \u003cb\u003eOutput\u003c/b\u003e\u003c/p\u003e\n\u003cp\u003e For each input string, you should print the string starting in column 1 immediately followed by exactly one of the following strings. \u003c/p\u003e\n\u003cp\u003e \u003c/p\u003e\n\u003cp\u003e \u003cbr\u003e \u003c/p\u003e\n\u003cdiv align\u003d\"CENTER\"\u003e \n \u003ctable cols\u003d\"2\" border frame\u003d\"BOX\" rules\u003d\"GROUPS\"\u003e \n \u003ccolgroup\u003e\n \u003ccol ALIGN\u003d\"LEFT\"\u003e\n \u003c/colgroup\u003e\n \u003ccolgroup\u003e\n \u003ccol ALIGN\u003d\"LEFT\"\u003e \n \u003c/colgroup\u003e\n \u003ctbody\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap colspan\u003d\"1\"\u003e \u003ctt\u003eSTRING\u003c/tt\u003e\u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"CENTER\" nowrap colspan\u003d\"1\"\u003e \u003ctt\u003eCRITERIA\u003c/tt\u003e\u003c/td\u003e\n \u003c/tr\u003e \n \u003c/tbody\u003e\n \u003ctbody\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"LEFT\" nowrap\u003e\u003ctt\u003e -- is not a palindrome.\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"LEFT\" nowrap\u003e if the string is not a palindrome and is not a mirrored string \u003c/td\u003e\n \u003c/tr\u003e \n \u003c/tbody\u003e\n \u003ctbody\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"LEFT\" nowrap\u003e\u003ctt\u003e -- is a regular palindrome.\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"LEFT\" nowrap\u003e if the string is a palindrome and is not a mirrored string \u003c/td\u003e\n \u003c/tr\u003e \n \u003c/tbody\u003e\n \u003ctbody\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"LEFT\" nowrap\u003e\u003ctt\u003e -- is a mirrored string.\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"LEFT\" nowrap\u003e if the string is not a palindrome and is a mirrored string \u003c/td\u003e\n \u003c/tr\u003e \n \u003c/tbody\u003e\n \u003ctbody\u003e \n \u003ctr\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"LEFT\" nowrap\u003e\u003ctt\u003e -- is a mirrored palindrome.\u003c/tt\u003e \u003c/td\u003e\n \u003ctd valign\u003d\"BASELINE\" align\u003d\"LEFT\" nowrap\u003e if the string is a palindrome and is a mirrored string \u003c/td\u003e\n \u003c/tr\u003e \n \u003c/tbody\u003e \n \u003c/table\u003e \n\u003c/div\u003e \n\u003cp\u003e Note that the output line is to include the \u003ctt\u003e-\u003c/tt\u003e\u0027s and spacing exactly as shown in the table above and demonstrated in the Sample Output below. \u003c/p\u003e\n\u003cp\u003e In addition, after each output line, you must print an empty line. \u003c/p\u003e\n\u003cp\u003e \u003cb\u003eSample Input\u003c/b\u003e \u003c/p\u003e\n\u003cpre\u003e\nNOTAPALINDROME \nISAPALINILAPASI \n2A3MEAS \nATOYOTA\n\u003c/pre\u003e \n\u003cp\u003e \u003cb\u003eSample Output\u003c/b\u003e \u003c/p\u003e\n\u003cpre\u003e\nNOTAPALINDROME -- is not a palindrome.\n \nISAPALINILAPASI -- is a regular palindrome.\n \n2A3MEAS -- is a mirrored string.\n \nATOYOTA -- is a mirrored palindrome.\n\n\u003c/pre\u003e"}}]}