//     _    __         ___    
//    (_)__/ /__ ___ _/ (_)___  |
//   / / _  / -_) _ `/ / / __/  |  created on  
//  /_/\_,_/\__/\_,_/_/_/\__/   |  2020 Dec 28 20:08:05
//   

#include<bits/stdc++.h>
using namespace std;

void solve(){
  string s; cin>>s;
  if(s[0]==')' || s.back()=='(' || s.length()%2!=0) cout<<"NO\n";
  else cout<<"YES\n";
}

int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int t = 1;
  cin >> t;
  while(t--) solve();
}

