A sequence of parentheses is a correct mathematical expression obtained by removing all numbers and operation signs. For example,
A string consisting of opening and closing parentheses, with a length not exceeding 4 \cdot 10^6, is given.
Print YES if the given sequence of parentheses is correct, otherwise print NO.
Example 1
Example 2