#include <iostream>
using namespace std;

typedef long long ll;

int main(){
  int q;

  while(cin >> q){
    ll l = 0;
    ll r = 0;

    for(int i = 0; i < q; i++){
      ll p, n;
      char c;
      cin >> p >> c >> n;

      if(c == '('){
        l += n;
      }
      else{
        r += n;
      }

      if(l == r){
        cout << "Yes" << endl;
      }
      else{
        cout << "No" << endl;
      }
    }
  }
}