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

int main(int argc, char *argv[]){
  int num;
  cin >> num;
  long long int p, n;
  char c;
  long long int count = 0;
  for (int i = 0; i < num; i++) {
    cin >> p >> c >> n;
    if(c == '('){
      count += n;
    }else{
      count -= n;
    }
    if(count == 0){
      std::cout << "Yes" << std::endl;
    }else{
      std::cout << "No" << std::endl;      
    }
  }
  return 0;
}