~/algor $ cat problems/string-eng-uzun-palindrom-qism
Longest palindromic substring
Medium
1000 ms
128 MB
63%
A string $s$ of lowercase Latin letters is given. Find the length of the longest substring of consecutive letters that is a palindrome.
Input
One line containing the string $s$.
Output
One integer.
Note
$1 \le |s| \le 2000$
$s$ consists of lowercase Latin letters only
Examples
Input #1
abacabx
Output #1
5
Input #2
abcd
Output #2
1