In a sequence of lowercase Latin alphabet characters, your task is to identify the longest substring consisting of consecutive, distinct characters.
Write a program named SUBSTR that, given such a sequence, finds the first substring in which all characters are unique.
The input contains a sequence, split across multiple lines for convenience. Each line contains at most characters. The total length of the sequence does not exceed characters.
Print the first longest substring of consecutive, distinct characters from the input sequence.
Example 1