#include <bits/stdc++.h>

using namespace std;

void solve(){
    string s;
    cin >> s;
    int n1 = s.find('(');
    int n2 = s.find(')');
    if (s[0] != ')' && s[(int)s.size() - 1] != '(' && (int)s.size() % 2 == 0)
        cout << "yEs\n";
    else
        cout << "NO\n";
    return;
}
int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int t;
    cin >> t;
    while (t--)
        solve();
}
/*
BABABABA

aaaaaaaaa
BABA
BABABABA
??(?)
*/
