A Parenthesis String (PS) is a string made up of only the two bracket characters '(' and ')'. Among these, a string whose brackets are correctly matched is called a Valid Parenthesis String (VPS).
A VPS is defined as follows:
For example, "(())()" and "((()))" are VPS, while "(()(", "(())()))", and "(()" are not.
Given a parenthesis string, decide whether it is a VPS and answer "YES" or "NO".
The first line contains the number of test cases T. Each of the following T lines contains one parenthesis string. The length of each parenthesis string is between 2 and 50, inclusive.
For each test case, print "YES" if the given parenthesis string is a Valid Parenthesis String (VPS), or "NO" otherwise, one result per line in the input order.