Line block#8231

Line block

1 second
64 megabytes
Very easy

In a string , the block at position is defined as the longest substring starting at position that matches the prefix of . Note that the length of the block at position is zero. Your task is to determine the length of the largest block in the given string .

Input

The input consists of a single line containing the string (1 \leq \text{length}(T) \leq 10^5), composed entirely of Latin letters.

Output

Print a single integer representing the length of the largest block.

Examples

Example 1

Loading
Loading