#include<iostream>
using namespace std;
int main()
{
    char z;
    long long n,a,b,ans1,ans2;
    char c,d;
    while(cin>>n)
    {
        ans1=0;
        ans2=0;
        while(n--)
        {
           cin>>a>>c>>b;
            if(c=='(')
                ans1+=b;
            else
                ans2+=b;
            if(ans1==ans2)
                cout<<"Yes"<<endl;
            else
                cout<<"No"<<endl;
        }
    }
    return 0;
}