#include <iostream>
using namespace std;

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