{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cp\u003eA regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string \u003ctt\u003e\"ABCDEDCBA\"\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\u003eA 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\u003e\"3AIAE\"\u003c/tt\u003e is a mirrored string because \u003ctt\u003e\"A\"\u003c/tt\u003e and \u003ctt\u003e\"I\"\u003c/tt\u003e are their own reverses, and \u003ctt\u003e\"3\"\u003c/tt\u003e and \u003ctt\u003e\"E\"\u003c/tt\u003e are each others\u0027 reverses.\u003c/p\u003e\n\u003cp\u003e\u003c/p\u003e\n\u003cp\u003e\u003cbr\u003eA mirrored palindrome is a string that meets the criteria of a regular palindrome and the criteria of a mirrored string. The string \u003ctt\u003e\"ATOYOTA\"\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\u003e\"A\"\u003c/tt\u003e, \u003ctt\u003e\"T\"\u003c/tt\u003e, \u003ctt\u003e\"O\"\u003c/tt\u003e, and \u003ctt\u003e\"Y\"\u003c/tt\u003e are all their own reverses.\u003c/p\u003e\n\u003cp\u003e\u003c/p\u003e\n\u003cp\u003e\u003cbr\u003eA 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\"middle\"\u003e\n \u003ccol align\u003d\"middle\"\u003e\n \u003ccol align\u003d\"middle\"\u003e\n \u003ccol align\u003d\"middle\"\u003e\n \u003ccol align\u003d\"middle\"\u003e\n \u003ccol align\u003d\"middle\"\u003e\n \u003c/colgroup\u003e\n \u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003cspan id\u003d\"txt62\"\u003eCharacter\u003c/span\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003cspan id\u003d\"txt63\"\u003eReverse\u003c/span\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003cspan id\u003d\"txt64\"\u003eCharacter\u003c/span\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003cspan id\u003d\"txt65\"\u003eReverse\u003c/span\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003cspan id\u003d\"txt66\"\u003eCharacter\u003c/span\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003cspan id\u003d\"txt67\"\u003eReverse\u003c/span\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eA\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eA\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eM\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eM\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eY\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eY\u003c/tt\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eB\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eN\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eZ\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e5\u003c/tt\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eC\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eO\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eO\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e1\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e1\u003c/tt\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eD\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eP\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e2\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eS\u003c/tt\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eE\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e3\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eQ\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e3\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eE\u003c/tt\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eF\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eR\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e4\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eG\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eS\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e2\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e5\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eZ\u003c/tt\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eH\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eH\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eT\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eT\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e6\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eI\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eI\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eU\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eU\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e7\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eJ\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eL\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eV\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eV\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e8\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e8\u003c/tt\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eK\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eW\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eW\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003e9\u003c/tt\u003e\u003c/td\u003e\n \u003ctd\u003e\u003c/td\u003e\n \u003c/tr\u003e\n \u003ctr\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eL\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eJ\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eX\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\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\u003cb\u003eNote\u003c/b\u003e 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\u003c/p\u003e\n\u003ch2\u003e\u003cfont color\u003d\"#0070e8\"\u003e\u003ca name\u003d\"SECTION0001001000000000000000\"\u003eInput\u003c/a\u003e\u0026nbsp;\u003c/font\u003e\u003c/h2\u003eInput 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. \n\u003cp\u003e\u003c/p\u003e\n\u003ch2\u003e\u003cfont color\u003d\"#0070e8\"\u003e\u003ca name\u003d\"SECTION0001002000000000000000\"\u003eOutput\u003c/a\u003e\u0026nbsp;\u003c/font\u003e\u003c/h2\u003eFor each input string, you should print the string starting in column 1 immediately followed by exactly one of the following strings. \n\u003cp\u003e\u003c/p\u003e\n\u003cp\u003e\u003cbr\u003e\u003c/p\u003e\n\u003cdiv align\u003d\"center\"\u003e\n \u003ctable border\u003d\"1\" cols\u003d\"2\" 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 align\u003d\"middle\" nowrap valign\u003d\"baseline\"\u003e\u003ctt\u003eSTRING\u003c/tt\u003e\u003c/td\u003e\n \u003ctd align\u003d\"middle\" nowrap valign\u003d\"baseline\"\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 align\u003d\"left\" nowrap valign\u003d\"baseline\"\u003e\"\u003ctt\u003e - is not a palindrome.\u003c/tt\u003e\"\u003c/td\u003e\n \u003ctd align\u003d\"left\" nowrap valign\u003d\"baseline\"\u003eif 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 align\u003d\"left\" nowrap valign\u003d\"baseline\"\u003e\"\u003ctt\u003e - is a regular palindrome.\u003c/tt\u003e\"\u003c/td\u003e\n \u003ctd align\u003d\"left\" nowrap valign\u003d\"baseline\"\u003eif 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 align\u003d\"left\" nowrap valign\u003d\"baseline\"\u003e\"\u003ctt\u003e - is a mirrored string.\u003c/tt\u003e\"\u003c/td\u003e\n \u003ctd align\u003d\"left\" nowrap valign\u003d\"baseline\"\u003eif 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 align\u003d\"left\" nowrap valign\u003d\"baseline\"\u003e\"\u003ctt\u003e - is a mirrored palindrome.\u003c/tt\u003e\"\u003c/td\u003e\n \u003ctd align\u003d\"left\" nowrap valign\u003d\"baseline\"\u003eif 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\u003cb\u003eNote\u003c/b\u003e 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\u003eIn addition, after each output line, you must print an empty line.\u003c/p\u003e\n\u003cp\u003e\u003c/p\u003e\n\u003ch2\u003e\u003cfont color\u003d\"#0070e8\"\u003e\u003ca name\u003d\"SECTION0001003000000000000000\"\u003eSample Input\u003c/a\u003e\u0026nbsp;\u003c/font\u003e\u003c/h2\u003e\n\u003cpre\u003eNOTAPALINDROME \nISAPALINILAPASI \n2A3MEAS \nATOYOTA\n\u003c/pre\u003e\n\u003cp\u003e\u003c/p\u003e\n\u003ch2\u003e\u003cfont color\u003d\"#0070e8\"\u003e\u003ca name\u003d\"SECTION0001004000000000000000\"\u003eSample Output\u003c/a\u003e\u0026nbsp;\u003c/font\u003e\u003c/h2\u003e\n\u003cpre\u003eNOTAPALINDROME -- is not a palindrome.\n \nISAPALINILAPASI -- is a regular palindrome.\n \n2A3MEAS -- is a mirrored string.\n \nATOYOTA -- is a mirrored palindrome.\n\u003c/pre\u003e\n\u003cp\u003e\u003c/p\u003e\n\u003cp\u003e\u003cbr\u003e\u003c/p\u003e\n\u003chr\u003e\n\u003caddress\u003eMiguel Revilla 2001-04-16\u003c/address\u003e"}}]}