#include <iostream>

using namespace std;

typedef long long int lli;

int main()
{
  lli n, s, t;
  int q, p;
  char c;

  while(cin>>q && q){
    s = t = 0;

    for(int i = 0; i < q; ++i){
      cin >> p >> c >> n;
      if(c == '(') s += n;
      else t += n;
      cout << ((s == t)? "Yes" : "No") << endl;
    }
  }

  return 0;
}