Given a string
,
please compute the longest sufix of
that is a palindrome, that is, that reads the same backward as
forward.
Input
Input consists of several
,
each one made up of between 1 and
lowercase letters.
Output
For every
,
print the length of the longest sufix of
that is a palindrome.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.