/*;
THE BEST IS YET TO COME
*/
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define r(i, s, l) for (int i = s; i < l; i++)
#define rr(i, s, l) for (int i = s; i >= l; i--)
#define mod 1000000007
#define INT_BITS 32
#define ld long double
#define pp pair<int, int>
#define ss second
#define ff first
#define INF 1e18
#define N 2000005
#define all(a) a.begin(), a.end()
#define pb push_back
#define vi vector<int>
#define vip vector<pair<int, int>>
#define endl "\n"
#define ln length()
#define sz size()
using namespace std;
void fast()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
}

signed main()
{

    fast();
    int t;
    cin>>t;
    while(t--)
    {
      string s;
      cin>>s;
      int n = s.length();
      if(n%2!=0)
      {
        cout<<"NO"<<endl;
        continue;
      }

      if(s[0] != ')' && s[n-1]!='(')
      {
        cout<<"YES"<<endl;
      }
      else
      {cout<<"NO"<<endl;}


    }

    return 0;
}
