#include <bits/stdc++.h>
using namespace std;
int32_t main(void) {
  int t, tt, i, n, x;
  char c;
  cin >> n;
  map<int, int> mp;
  int q;
  for (i = 0; i < n; i++) {
    cin >> x;
    mp[x]++;
  }
  int cnt1 = 0, cnt2 = 0, cnt3 = 0, cnt0 = 0;
  for (auto it : mp) {
    if (it.second >= 8) {
      cnt0++;
    } else if (it.second >= 6) {
      cnt1++;
    } else if (it.second >= 4) {
      cnt2++;
    } else if (it.second >= 2) {
      cnt3++;
    }
  }
  cin >> q;
  for (i = 0; i < q; i++) {
    char c;
    cin >> c;
    cin >> x;
    if (c == '-') {
      mp[x]--;
      if (mp[x] == 7) {
        cnt0--;
        cnt1++;
      } else if (mp[x] == 5) {
        cnt1--;
        cnt2++;
      } else if (mp[x] == 3) {
        cnt2--;
        cnt3++;
      } else if (mp[x] == 1) {
        cnt3--;
      }
    } else {
      mp[x]++;
      if (mp[x] == 2) {
        cnt3++;
      } else if (mp[x] == 4) {
        cnt2++;
        cnt3--;
      } else if (mp[x] == 6) {
        cnt1++;
        cnt2--;
      } else if (mp[x] == 8) {
        cnt0++;
        cnt1--;
      }
    }
    if (cnt0 >= 1 || cnt1 >= 2 || cnt2 >= 2)
      cout << "Yes" << endl;
    else if (cnt1 == 1 && (cnt2 == 1 || cnt3 >= 1))
      cout << "Yes" << endl;
    else if (cnt2 == 1 && cnt3 >= 2)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
