#include <iostream>

using namespace std;

int main()
{
	for(int q;cin>>q;){
		long long l=0,r=0;
		while(q--){
			int p,n; char c; cin>>p>>c>>n;
			if(c=='(') l+=n;
			if(c==')') r+=n;
			cout<<(l==r?"Yes":"No")<<endl;
		}
	}
}