#include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
int main(){
	int q;
	long long p,n;
	char c[3];
	while(~scanf("%d",&q)){
		long long view=0;
		while(q--){
			scanf("%lld%s%lld",&p,c,&n);
			if(c[0]=='(') view+=n;
			else view-=n;
			if(view==0) printf("Yes\n");
			else printf("No\n");	
		}
	}
	return 0;
}