e-olymp
favorite We need a little bit of your help to keep things running, click on this banner to learn more
Problems

Sequence of brackets

Sequence of brackets

Sequence of brackets consists of three types of brackets. Determine is it a correct sequence.

Input

String contains a bracket sequence with length no more than 255 characters.

Output

Print "yes" if the sequence is correct and "no" otherwise.

Time limit 1 second
Memory limit 122.17 MiB
Input example #1
()
Output example #1
yes
Input example #2
(}]
Output example #2
no