Search for a string#4683

Search for a string

1 second
64 megabytes
Easy

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.

Input

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.

Output

Print the first longest substring of consecutive, distinct characters from the input sequence.

Examples

Example 1

Loading
Loading