#include <iostream>
#include <cstdio>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <deque>
#include <stack>
#include <algorithm>
#include <cstring>
#include <functional>
#include <cmath>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);++i)
#define rep1(i,n) for(int i=1;i<=(n);++i)
#define all(c) (c).begin(),(c).end()
#define fs first
#define sc second
#define pb push_back
#define show(x) cout << #x << " " << x << endl
int main(){
	int n;
	cin>>n;
	long long now=0;
	rep(i,n){
		int a,b;
		char c;
		cin>>a>>c>>b;
		if(c=='(') now+=b;
		else now-=b;
		if(now==0) puts("Yes");
		else puts("No");
	}
}