#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int maxn = 1e2 + 10;
int t, n;
char ch[maxn];
void solve() {
	scanf("%s", ch + 1);
	if(strlen(ch + 1) % 2 || ch[1] == ')' || ch[strlen(ch + 1)] == '(') puts("NO");
	else puts("YES");
}
int main() {
	scanf("%d", &t);
	while(t--)
		solve();
	return 0;
}