Verification of Valid Bracket Sequence#4433

Verification of Valid Bracket Sequence

1 second
64 megabytes
Very easy

A sequence of round, square, and curly brackets is provided.

Your task is to determine if this sequence is a valid bracket sequence.

Input

The input file contains a bracket sequence with a maximum length of characters.

Output

Print YES if the bracket sequence is valid, and NO if it is not.

Examples

Example 2

Loading
Loading

Example 3

Loading
Loading