Balanced Brackets
Is the bracket sequence balanced? Every (, [, { must be closed by the matching bracket in the correct order. Print Yes or No.
Input
One line containing only the characters ()[]{}.
Output
Yes or No.
Constraints
1 to characters.
Sample 1
Input
{[()]}
Output
Yes
Sample 2
Input
([)]
Output
No