Skip to main content

~/algor $ cat contests/round-9/J

J. Longest substring without repeats

Problem J ICPC rules 1000 ms 128 MB

A string of lowercase Latin letters is given. Find the length of the longest substring of consecutive characters in which no letter repeats.

The window of the longest substring whose characters are all distinct

Input

One line containing the string .

Output

One integer.

Note


consists of lowercase Latin letters (a–z) only

Examples

Input #1
abcabcbb
Output #1
3
Input #2
aaaa
Output #2
1

Sign in to submit a solution

Signing up is free and takes a minute.