#include <iostream>
#include <string>
#include <sstream>
#include <stdio.h>
#include <vector>

using namespace std;

int main(void){
	//FILE* fp_in = freopen("data.txt", "r", stdin);
	string ans[] = { "No", "Yes" };
	long long int q, right = 0, left = 0;
	cin >> q;
	for(int i = 0; i < q; i++) {
		char ch;
		long long int a, b;
		cin >> a >> ch >> b;
		if( ch == '(' )
			left += b;
		else
			left -= b;
		cout << ans[left == 0] << endl;
	}
	//while(1){}
	return 0;
}