A sequence of round, square, and curly brackets is provided.
Your task is to determine if this sequence is a valid bracket sequence.
The input file contains a bracket sequence with a maximum length of characters.
Print YES if the bracket sequence is valid, and NO if it is not.
Пример 2
Пример 3