#include <bits/stdc++.h>
using namespace std;

int main()
{
	
    int tc;
    cin>>tc;
    while(tc--)
    {
     string s;
     cin>>s;
     int n=s.length();
     if(n%2!=0 || s[0]==')' || s[n-1]=='(')
	 cout<<"NO\n";
	 else
	 cout<<"YES\n";
}
	return 0;
}