#include <iostream>
#include <sstream>
#include <vector>
#include <list>
#include <string>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <algorithm>
#include <numeric>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <climits>
using namespace std;

typedef long long LL;

int main() {
    LL a = 0, b = 0;
    LL q = 0;
    cin >> q;
    for ( int i = 0; i < q; ++ i ) {
        LL p, n;
        char c;
        cin >> p >> c >> n;
        if ( c == '(' ) {
            a += n;
        } else {
            b += n;
        }
        cout << ( a == b ? "Yes" : "No" ) << endl;
    }
    return 0;
}