#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstdio>
using namespace std;
long long a,b;
char ch;
int main()
{
    long long n;
    while (~scanf("%lld",&n)){
        long long l =0, r = 0;
        for (long long i = 0; i < n; i++){
            scanf("%lld %c %lld",&a,&ch,&b);
            if (ch == '(')
                l += b;
            else
                r += b;

        if (l == r)puts("Yes");
        else puts("No");
        }
    }
    return 0;
}