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

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  int q;
  cin >> q;
  long long l = 0, r = 0;
  while (q--) {
    int p, n;
    char c;
    cin >> p >> c >> n;
    if (c == '(') {
      l += n;
    } else {
      r += n;
    }
    if (l == r) {
      cout << "Yes\n";
    } else {
      cout << "No\n";
    }
  }
}

