Problem Description

Input is a string with (), [], {}. Print YES if it is balanced, else NO.

Input Format

One line string s.

Output Format

YES or NO.

Sample Test Case

Input:
([{}])
Output:
YES

Constraints

|s|

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next