#c22401. 最长回文子串

最长回文子串

Longest Palindromic Substring

Problem Description

Given a string ss consisting of lowercase letters, find the length of the longest palindromic substring of ss.

Input Format

One line with a string ss.

Output Format

Output one integer, the answer.

Sample Input

abbabbab

Sample Output

7

Constraints

For all data: 1≤∣s∣≤1051 \leq |s| \leq 10^5, and ss consists only of lowercase letters.