#include <iostream>

using namespace std;

int main(){
  long long n, ans = 0, a;
  char c;
  cin >> n;
  while(n--){
    cin >> a >> c >> a;
    ans += (c == '(' ? a : -a);
    cout << (ans ? "No" : "Yes") << endl;
  }
}