AdvancedRating 1600
Longest Prefix That Is Also a Suffix
Print the length of the longest proper prefix of the string that is also its suffix (proper means shorter than the whole string).
Input
One string.
Output
One integer.
Sample 1
Input
level
Output
1
Sample 2
Input
ababab
Output
4
Output appears here