#include <bits/stdc++.h>
using namespace std;
const int N_MAX = 100002;
int n;
int p[N_MAX * 2];
set<int> adds;
int buy[N_MAX];
int answer[N_MAX * 2];
set<int> sim;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (int i = 1; i <= n * 2; i++) {
    char c;
    cin >> c;
    if (c == '+')
      adds.insert(i);
    else {
      cin >> p[i];
      buy[p[i]] = i;
    }
  }
  for (int i = 1; i <= n; i++) {
    set<int>::iterator it = adds.upper_bound(buy[i]);
    if (it == adds.begin()) {
      cout << "NO\n";
      return 0;
    }
    it--;
    answer[*it] = i;
    adds.erase(it);
  }
  for (int i = 1; i <= n * 2; i++)
    if (p[i] > 0) {
      if (*sim.begin() != p[i]) {
        cout << "NO\n";
        return 0;
      }
      sim.erase(sim.begin());
    } else {
      sim.insert(answer[i]);
    }
  cout << "YES\n";
  for (int i = 1; i <= n * 2; i++)
    if (answer[i] > 0) cout << answer[i] << " ";
  cout << "\n";
  return 0;
}
