#include <bits/stdc++.h>
using namespace std;
const long long N = 2e5 + 1;
const long long block = 1;
const long long big = 1e18;
const long long mod = 1e9 + 7;
mt19937_64 srnd(chrono::steady_clock::now().time_since_epoch().count());
long long n;
char x[N];
long long b[N], a[N], c[N], d[N];
set<long long> z;
set<long long> pl;
long long ans[N];
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  cin >> n;
  for (int i = 0; i < 2 * n; i++) {
    cin >> x[i];
    if (x[i] == '-') {
      cin >> b[i];
      d[b[i]] = i;
      z.insert(i);
    } else {
      pl.insert(i);
      c[i] = pl.size();
    }
  }
  for (int i = 1; i <= n; i++) {
    auto bl = z.lower_bound(d[i]);
    long long L = -1;
    if (bl != z.begin()) bl--, L = *bl;
    auto sa = pl.lower_bound(d[i]);
    long long plu = -2;
    if (sa != pl.begin()) sa--, plu = *sa;
    if (plu < L) {
      cout << "NO\n", exit(0);
    }
    z.erase(d[i]);
    pl.erase(plu);
    ans[c[plu]] = i;
  }
  cout << "YES\n";
  for (int i = 1; i <= n; i++) cout << ans[i] << " ";
}
