{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"A palindrome is a word, number, or phrase that reads the same forwards as backwards. For example, the name \"anna\" is a palindrome. Numbers can also be palindromes (e.g. 151 or 753357). Additionally numbers can of course be ordered in size. The first few palindrome\r\u003cbr\u003enumbers are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 22, 33, ... \r\u003cbr\u003eThe number 10 is not a palindrome (even though you could write it as 010) but a zero as leading digit is not allowed."}},{"title":"Input","value":{"format":"HTML","content":"The input consists of a series of lines with each line containing one integer value i (1\u0026lt;\u003d i \u0026lt;\u003d 2*10^9 ). This integer value i indicates the index of the palindrome number that is to be written to the output, where index 1 stands for the first palindrome number (1), index 2 stands for the second palindrome number (2) and so on. The input is terminated by a line containing 0."}},{"title":"Output","value":{"format":"HTML","content":"For each line of input (except the last one) exactly one line of output containing a single (decimal) integer value is to be produced. For each input value i the i-th palindrome number is to be written to the output."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e1\r\n12\r\n24\r\n0\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1\r\n33\r\n151\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}