#include <cstdlib>
#include <iostream>
using namespace std;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	int q;
	cin >> q;

	long long l = 0, r = 0;
	for(int i = 0; i < q; ++i) {
		int p, n;
		char c;
		cin >> p >> c >> n;

		if(c == '(')
			l += n;
		else
			r += n;

		cout << (l == r ? "Yes" : "No") << endl;		
	}

	return EXIT_SUCCESS;
}