Problem1846--最长回文数(2.2)

1846: 最长回文数(2.2)

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

Description

输入一个长度不超过16位的正整数,求其中最长的是回文数的一段的长度。例如:3476588592,其中最长的回文数是5885,长度为4

Input

第一行有1个正整数N1<=N<=10^16)。

Output

输出最长回文数长度。

Sample Input Copy

234312

Sample Output Copy

3

Source/Category