Problem: Euler is a little, cute squirrel. When the autumn comes, he collects some reserves for winter. The interesting fact is that Euler likes to collect acorns in a specific way. A tree can be described as n acorns connected by n - 1 branches, such that there is exactly one way between each pair of acorns. Let's enumerate the acorns from 1 to n.

The squirrel chooses one acorn (not necessary with number 1) as a start, and visits them in a way called "Euler tour" (see notes), collecting each acorn when he visits it for the last time.

Today morning Kate was observing Euler. She took a sheet of paper and wrote down consecutive indices of acorns on his path. Unfortunately, during her way to home it started raining and some of numbers became illegible. Now the girl is very sad, because she has to present the observations to her teacher.

"Maybe if I guess the lacking numbers, I'll be able to do it!" she thought. Help her and restore any valid Euler tour of some tree or tell that she must have made a mistake.

Input

The first line contains a single integer n (1 ≤ n ≤ 5 ⋅ 10^5), denoting the number of acorns in the tree.

The second line contains 2n - 1 integers a_1, a_2, …, a_{2n-1} (0 ≤ a_i ≤ n) — the Euler tour of the tree that Kate wrote down. 0 means an illegible number, which has to be guessed.

Output

If there is no Euler tour satisfying the given description, output "no" in the first line.

Otherwise, on the first line output "yes", and then in the second line print the Euler tour which satisfy the given description.

Any valid Euler tour will be accepted, since the teacher doesn't know how exactly the initial tree looks.

Examples

Input

2
1 0 0


Output

yes
1 2 1


Input

4
1 0 3 2 0 0 0


Output

yes
1 4 3 2 3 4 1


Input

5
0 1 2 3 4 1 0 0 0


Output

no

Note

An Euler tour of a tree with n acorns is a sequence of 2n - 1 indices of acorns. such that each acorn occurs at least once, the first and the last acorns are same and each two consecutive acorns are directly connected with a branch.

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); }
const int MAXN = 500000;
int n;
int a[2 * MAXN - 1];
int b[2 * MAXN - 1];
int c[2 * MAXN - 1], nc;
int d[2 * MAXN - 1], nd;
int e[2 * MAXN - 1], ne;
int f[2 * MAXN - 1], nf;
int g[2 * MAXN - 1], ng;
int fst[MAXN], nxt[2 * MAXN - 1];
int unused[MAXN], nunused;
bool solveE(int par) {
  if (ne % 2 == 0) return false;
  int nempty = 0;
  for (int i = (0); i < (ne); ++i)
    if (b[e[i]] == -1) ++nempty;
  if (nempty < (ne - 1) / 2) return false;
  if (ne == 1) {
    if (b[e[0]] != -1) return true;
    if (nunused == 0) return false;
    b[e[0]] = unused[--nunused];
    return true;
  }
  if (par == -1) {
    int l = b[e[0]], r = b[e[ne - 1]], split = -1;
    if (l != -1 && r != -1 && l != r) return false;
    if (l != -1) {
      assert(r == -1);
      r = b[e[ne - 1]] = l;
    } else if (r != -1) {
      assert(l == -1);
      l = b[e[0]] = r;
    } else if (nempty > (ne - 1) / 2) {
      if (nunused == 0) return false;
      l = r = b[e[0]] = b[e[ne - 1]] = unused[--nunused];
    } else {
      int bal = 0;
      for (int i = (1); i < (ne - 1); ++i)
        if (b[e[i]] == -1)
          --bal;
        else if (bal <= 0)
          ++bal;
        else {
          split = i;
          break;
        }
      assert(split != -1);
    }
    nf = ne;
    for (int i = (0); i < (ne); ++i) f[i] = e[i];
    if (split == -1) {
      assert(l != -1 && l == r);
      ne = 0;
      for (int i = (1); i < (nf - 1); ++i) e[ne++] = f[i];
      if (!solveE(l)) return false;
    } else {
      l = r = b[e[0]] = b[e[ne - 1]] = b[e[split]];
      assert(l != -1 && l == r);
      ne = 0;
      for (int i = (1); i < (split); ++i) e[ne++] = f[i];
      if (!solveE(l)) return false;
      ne = 0;
      for (int i = (split + 1); i < (nf - 1); ++i) e[ne++] = f[i];
      if (!solveE(l)) return false;
    }
  } else {
    ng = 0;
    int nextra = nempty - (ne - 1) / 2;
    for (int i = (0); i < (ne); ++i)
      if (nextra > 0 && b[e[i]] == -1) {
        if (nunused == 0) return false;
        b[e[i]] = unused[--nunused];
        --nextra;
      }
    for (int i = (0); i < (ne); ++i) {
      g[ng++] = e[i];
      while (ng >= 3) {
        if (b[g[ng - 3]] == -1 && b[g[ng - 2]] != -1 && b[g[ng - 1]] != -1) {
          b[g[ng - 3]] = b[g[ng - 1]];
          ng -= 2;
          continue;
        }
        if (b[g[ng - 3]] != -1 && b[g[ng - 2]] != -1 && b[g[ng - 1]] == -1) {
          b[g[ng - 1]] = b[g[ng - 3]];
          ng -= 2;
          continue;
        }
        break;
      }
    }
    assert(ng % 2 == 1);
    for (int i = (0); i < (ng); ++i) assert((b[g[i]] == -1) == (i % 2 == 1));
    for (int i = 1; i < ng; i += 2) b[g[i]] = par;
  }
  return true;
}
bool solve() {
  for (int i = (0); i < (n); ++i) fst[i] = -1;
  for (int i = 2 * n - 2; i >= 0; --i)
    if (a[i] != -1) {
      nxt[i] = fst[a[i]];
      fst[a[i]] = i;
    } else
      nxt[i] = -1;
  nunused = 0;
  for (int i = (0); i < (n); ++i)
    if (fst[i] == -1) unused[nunused++] = i;
  for (int i = (0); i < (2 * n - 1); ++i) b[i] = a[i];
  nc = nd = 0;
  for (int i = (0); i < (2 * n - 1); ++i) {
    if (nc > 0 && nxt[c[nc - 1]] == i) {
      ne = 0;
      while (nd > 0 && d[nd - 1] != c[nc - 1]) e[ne++] = d[--nd];
      assert(nd > 0 && d[nd - 1] == c[nc - 1]);
      --nc, --nd;
      reverse(e, e + ne);
      if (!solveE(a[i])) return false;
    }
    if (nxt[i] != -1) {
      if (nc > 0 && nxt[c[nc - 1]] < nxt[i]) return false;
      c[nc++] = i;
      d[nd++] = i;
    } else {
      d[nd++] = i;
    }
  }
  assert(nc == 0);
  ne = 0;
  while (nd > 0) e[ne++] = d[--nd];
  reverse(e, e + ne);
  if (!solveE(-1)) return false;
  return true;
}
void run() {
  scanf("%d", &n);
  for (int i = (0); i < (2 * n - 1); ++i) scanf("%d", &a[i]), --a[i];
  if (!solve()) {
    printf("no\n");
    return;
  }
  printf("yes\n");
  for (int i = (0); i < (2 * n - 1); ++i) {
    if (i != 0) printf(" ");
    printf("%d", b[i] + 1);
  }
  puts("");
}
int main() {
  run();
  return 0;
}