Longest Palindromic Substring

hard
Print the length of the longest palindromic substring

Input Format

Given a string S

Output Format

Print the length of the longest palindromic substring (Integer value)

Constraints

|S| <= 10^5

Example

Input
5
ababa
Output
5
Previous
Repeated Substrings - Kattis
Next
Devu And His Brother

Related Questions