#P2028. 最长回文

最长回文

A string of  the longest palindrome string.I just want the length.
This is a easy problem,yeah?

 

Input

Just a string who longest 110000.

Output

Just a number.

Sample Input

aaaa
abab

Sample Output

4
3

HINT

Source