eolymp
bolt
Try our new interface for solving problems
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