Limits 1s, 512 MB

Given a line of text, you have to extract the bit of text enclosed within a pair of brackets. There will be at most one pair of brackets.

Input

The input will contain a single line of string containing at most 50 characters.

Output

Print the text enclosed within a pair of brackets. If no valid pair of brackets is found, leave the output empty.

Samples

InputOutput
The quick (brown fox jumps) over the lazy dog.
brown fox jumps
InputOutput
Lorem ipsum dolor.

Submit

Login to submit.

Statistics

100% Solution Ratio
jackal_1586Earliest, Jan '23
jackal_1586Fastest, 0.0s
nusuBotLightest, 4.9 MB
touhidurrrShortest, 12B
Toph uses cookies. By continuing you agree to our Cookie Policy.