eolymp
bolt
Try our new interface for solving problems
Problems

Sequence of brackets

Sequence of brackets

Time limit 1 second
Memory limit 122 MiB

Sequence of brackets consists of three types of brackets ( ), [ ], { }. Determine is it a correct sequence.

Input data

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

Output data

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

Examples

Input example #1
()
Output example #1
yes
Input example #2
(}]
Output example #2
no