#include <iostream>
using namespace std;
using ll = long long;

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