#include <iostream>
using namespace std;

int main(){
  int p,q,n;
  char c;
  long l=0,r=0;
  cin>>q;
  while(q--){
    cin>>p>>c>>n;
    if(c=='(') l+=n;
    else r+=n;
    if(l==r) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  }
  return 0;
}