#include <iostream>
#include <cstdio>
#include <vector>
#include <algorithm>
#include <complex>
#include <cstring>
#include <cstdlib>
#include <string>
#include <cmath>
#include <cassert>
#include <queue>
#include <set>
#include <map>
#include <valarray>
#include <bitset>
#include <stack>
using namespace std;

#define REP(i,n) for(int i=0;i<(int)n;++i)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();++i)
#define ALL(c) (c).begin(), (c).end()
const int INF = 1<<29;
typedef long long ll;
int main() {
  int n;
  cin >> n;
  ll a = 0;
  REP(i, n) {
    int p, m;
    char c;
    cin >> p >> c >> m;
    if (c == '(') a += m;
    else a -= m;
    if (a == 0) cout << "Yes" << endl;
    else cout << "No" << endl;
  }
}