AdvancedRating 1500
Longest Palindrome Inside
Print the length of the longest palindromic substring.
Input
One string (length ≤ 2000).
Output
A length.
Sample 1
Input
babad
Output
3
Sample 2
Input
cbbd
Output
2
Output appears hereOne string (length ≤ 2000).
A length.
babad
3
cbbd
2
Output appears here