#include<bits/stdc++.h>
#define ll long long int
using namespace std;
int main()
{
	int t;
	cin>>t;
	while(t--){
		string str;
		cin>>str;
		if(str[0]==')' || str.size()%2 != 0 || str[str.size()-1]=='('){
			cout<<"NO\n";
		}
		else{
			cout<<"YES\n";
		}
	}
}