Problem Description

A string s is provided containing only '(' and ')'. Output YES if it is balanced else NO.

Input Format

One line s.

Output Format

YES or NO.

Sample Test Case

Input:
(()())
Output:
YES

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next