{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eAfter solving seven problems on Timus Online Judge with a word \r\n“palindrome” in the problem name, Misha has got an unusual ability.\r\nNow, when he reads a word, he can mentally count the number of unique \r\nnonempty substrings of this word that are palindromes.\u003c/div\u003e\u003c/div\u003e\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eDima wants to test Misha’s new ability. He adds letters \u003ci\u003es\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e, ..., \r\n\u003ci\u003es\u003c/i\u003e\u003csub\u003e\u003ci\u003en\u003c/i\u003e\u003c/sub\u003e to a word, letter by letter, and after every letter asks Misha, how \r\nmany different nonempty palindromes current word contains as substrings. \r\nWhich \u003ci\u003en\u003c/i\u003e numbers will Misha say, if he will never be wrong?\u003c/div\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eThe only line of input contains the string \u003ci\u003es\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e...\u003ci\u003es\u003c/i\u003e\u003csub\u003e\u003ci\u003en\u003c/i\u003e\u003c/sub\u003e, where \u003ci\u003es\u003c/i\u003e\u003csub\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e are\r\nsmall English letters (1 ≤ \u003ci\u003en\u003c/i\u003e ≤ 10\u003csup\u003e5\u003c/sup\u003e).\u003c/div\u003e\u003c/div\u003e"}},{"title":"Output","value":{"format":"HTML","content":"\u003cdiv class\u003d\"problem_par\"\u003e\u003cdiv class\u003d\"problem_par_normal\"\u003eOutput \u003ci\u003en\u003c/i\u003e numbers separated by whitespaces, \u003ci\u003ei\u003c/i\u003e-th of these numbers\r\nmust be the number of different nonempty substrings of prefix \u003ci\u003es\u003c/i\u003e\u003csub\u003e1\u003c/sub\u003e...\u003ci\u003es\u003c/i\u003e\u003csub\u003e\u003ci\u003ei\u003c/i\u003e\u003c/sub\u003e\r\nthat are palindromes.\u003c/div\u003e\u003c/div\u003e"}},{"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\u003eaba\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e1 2 3\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}