#include<stdio.h>
#include<string.h>
#include<math.h>
#include <string>
#include<algorithm>
#include<iostream>
#include<queue>
#include<stack>
#include<vector>
#include<map>
#include<set>
#include<cmath>
#define INF 0xfffffff
#define CL(x,v); memset(x,v,sizeof(x));
#define LL long long
#define REP(i,r,n) for(int i=r;i<=n;i++)
#define RREP(i,n,r) for(int i=n;i>=r;i--)
#define max(x,y) x>y?x:y
#define min(x,y) x<y?x:y
#define EPS 1e-8
using namespace std;
int main()
{

    int q;

    long long p,n;
    char c;
    while(scanf("%d",&q)!=EOF)
    {
        long long ans=0;
        for(int i=0;i<q;i++){
            scanf("%I64d %c %I64d",&p,&c,&n);
            if(c=='('){
                ans+=n;
            }
            else  ans-=n;
            if(ans==0)  printf("Yes\n");
            else printf("No\n");
        }

    }
    return 0;
}