#include <bits/stdc++.h>
using namespace std;
char t[200010];
long long a[200010], pos[200010];
set<int> s;
int main() {
  int n;
  cin >> n;
  int bal = 0;
  for (int i = 1; i <= n + n; ++i) {
    cin >> t[i];
    if (t[i] == '-') {
      cin >> a[i];
      pos[a[i]] = i;
      bal--;
    } else {
      s.insert(i);
      bal++;
    }
    if (bal < 0) {
      cout << "NO\n";
      return 0;
    }
  }
  for (int i = 1; i <= n; ++i) {
    auto z = s.lower_bound(pos[i]);
    z--;
    long long x = *z;
    a[x] = i;
    cerr << x << " ";
    s.erase(x);
  }
  set<int> check;
  for (int i = 1; i <= n + n; ++i) {
    if (t[i] == '+') {
      check.insert(a[i]);
    } else {
      if (a[i] != *check.begin()) {
        cout << "NO";
        return 0;
      }
      check.erase(*check.begin());
    }
  }
  cout << "YES\n";
  for (int i = 1; i <= n + n; ++i) {
    if (t[i] == '+') {
      cout << a[i] << " ";
    }
  }
}
