{"trustable":true,"prependHtml":"\u003cscript\u003e\n window.katexOptions \u003d {\n delimiters: [\n {left: \u0027\\\\(\u0027, right: \u0027\\\\)\u0027, display: false},\n ]\n };\n\u003c/script\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"A palindrome is a word, number, or phrase that reads the same forwards as backwards. \nFor example, the name \"anna\" is a palindrome. Numbers can also be palindromes \n(e.g. 151 or 753357). Additionally numbers can of course be ordered in size. The \nfirst few palindrome\u003cbr\u003e\nnumbers are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, ...\n\u003cp\u003eThe number 10 is not a palindrome (even though you could write it as 010) but \n a zero as leading digit is not allowed.\u003c/p\u003e\n\u003cp\u003e\u003cbr\u003e\n \u003cb\u003eInput\u003c/b\u003e\u003cbr\u003e\n \u003cbr\u003e\n The input consists of a series of lines with each line containing one integer \n value i (1\u0026lt;\u003d i \u0026lt;\u003d 2*10^9 ). This integer value i indicates the index of \n the palindrome number that is to be written to the output, where index 1 stands \n for the first palindrome number (1), index 2 stands for the second palindrome \n number (2) and so on. The input is terminated by a line containing 0.\u003c/p\u003e\n\u003cp\u003e\u003cbr\u003e\n \u003cb\u003eOutput\u003c/b\u003e\u003cbr\u003e\n \u003cbr\u003e\n For each line of input (except the last one) exactly one line of output containing \n a single (decimal) integer value is to be produced. For each input value i the \n i-th palindrome number is to be written to the output.\u003c/p\u003e\n\u003cp\u003e\u003cbr\u003e\n \u003cb\u003eSample Input\u003c/b\u003e\u003cbr\u003e\n \u003cbr\u003e\n 1\u003cbr\u003e\n 12\u003cbr\u003e\n 24\u003cbr\u003e\n 0\u003c/p\u003e\n\u003cp\u003e\u003cbr\u003e\n \u003cb\u003eSample Output\u003c/b\u003e\u003cbr\u003e\n \u003cbr\u003e\n 1\u003cbr\u003e\n 33\u003cbr\u003e\n 151\u003cbr\u003e\n\u003c/p\u003e\n"}}]}