Problem Description

Given a string with brackets (), {}, [], check if it is balanced. Print YES or NO.

Input Format

One line string.

Output Format

YES or NO.

Sample Test Case

Input:
{[()]}
Output:
YES

Constraints

Length up to 2e5.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next