The largest block#1310

The largest block

1 second
64 megabytes
Very easy

The block of a string at position is the longest substring of that starts at position and matches the prefix of . The length of the block at position is considered to be zero.

Find the length of the largest block for the given string .

Input

The only input line contains the string (|S| \leq 10^6).

Output

Print the length of the largest block of the string .

Examples

Example 1

Loading
Loading