#include <bits/stdc++.h>
using namespace std;

int main() {
	long long int N;
	cin >> N;
	long long int a = 0, b = 0;
	for( size_t i = 0; i < N; i++ ) {
		long long int x, z;
		char y;
		cin >> x >> y >> z;
		if( y == '(' ) {
			a += z;
		} else {
			b += z;
		}
		if( a == b ) {
			cout << "Yes" << endl;
		} else {
			cout << "No" << endl;
		}
	}
}