#include<bits/stdc++.h>
using namespace std;
int main()
{
	int i,t;
	cin>>t;
	while(t--){
		int flag=0;
		string st;
		cin>>st;
		int size=st.size();
		char arr[size+1];
		strcpy (arr, st.c_str());
		if(size%2!=0 || arr[0]==')' || arr[size-1]=='(')
			cout<<"NO"<<endl;
		else
			cout<<"YES"<<endl;	
	}
}
