#include <iostream>
using namespace std;

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