#include <iostream>
#include <stdio.h>
using namespace std;
int _=0,x=0,y=0;
long long a=0,b=0;
char ch[10];
int main ()
{
//freopen("test.in","r",stdin);
    cin>>_;
    while (_--)
    {
        scanf("%d%s%d",&x,ch,&y);
        if (ch[0]=='(')
            a+=y;
        else
            b+=y;
        if (a==b)
            cout<<"Yes\n";
        else
            cout<<"No\n";
    }
//fclose(stdin);
    return 0;
}