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

signed main(){
  int q;
  cin>>q;
  int cnt[2]={};
  for(int i=0;i<q;i++){
    int p,n;
    char c;
    cin>>p>>c>>n;
    cnt[c=='(']+=n;
    if(cnt[0]==cnt[1])cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  }
  return 0;
}

