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 n, num, doe, flag = 0;
int l[1010101], r[1010101], col[1010101];
int a[1010101], br[1010101], pre[1010101], nxt[1010101];
int st[1010101], top = 0;
struct node {
  int t, x;
} thing[2010101];
bool cmp(node u, node w) { return u.x < w.x || (u.x == w.x && u.t < w.t); }
void init() {
  for (int i = 1; i < num; ++i) r[i] = i + 1;
  for (int i = 2; i <= num; ++i) l[i] = i - 1;
  for (int i = 1; i <= num; ++i)
    if (a[i]) {
      if (col[a[i]]) {
        int x = col[a[i]], y = i;
        if (x + 1 == y) {
          flag = 1;
          return;
        }
        l[r[x]] = 0;
        r[l[y]] = 0;
        br[x] = 0;
        pre[r[x]] = x;
        nxt[r[x]] = y;
        r[l[x]] = y;
        l[y] = l[x];
        ++doe;
        thing[doe] = (node){1, x};
        ++doe;
        thing[doe] = (node){-1, y};
      }
      col[a[i]] = i;
    }
  sort(thing + 1, thing + 1 + doe, cmp);
  for (int i = 1; i <= doe; ++i) {
    int x = thing[i].x;
    if (thing[i].t == -1) {
      if (a[st[top]] != a[x]) {
        flag = 1;
        return;
      }
      --top;
    } else
      ++top, st[top] = x;
  }
  top = 0;
  for (int i = 1; i <= n; ++i)
    if (!col[i]) ++top, st[top] = i;
}
int s[1010101];
void check(int x) { a[s[1]] = a[s[x]] = max(a[s[1]], a[s[x]]); }
void del(int x) {
  if (l[x]) r[l[x]] = r[x];
  if (r[x]) l[r[x]] = l[x];
}
void sol(int x) {
  int len = 0, fuck = 0;
  while (x) {
    ++len;
    if (a[x]) ++fuck;
    s[len] = x;
    br[x] = 0;
    x = r[x];
  }
  fuck = (len + 1) / 2 - fuck;
  fuck = top - fuck;
  if (fuck > top) {
    flag = 1;
    return;
  }
  if (len % 2 == 0) {
    flag = 1;
    return;
  }
  if (s[1] == 1) {
    if (a[s[1]] != a[s[len]] && a[s[1]] && a[s[len]]) {
      flag = 1;
      return;
    }
    a[s[1]] = a[s[len]] = max(a[s[1]], a[s[len]]);
  }
  if (len == 1) {
    if (!a[s[1]]) {
      if (top == 0)
        flag = 1;
      else
        a[s[1]] = st[top], --top;
    }
    return;
  }
  int S = pre[s[1]], T = nxt[s[1]];
  int L1 = l[S], R1 = r[S], L2 = l[T], R2 = r[T];
  if (s[1] != 1) {
    l[S] = r[T] = 0;
    r[S] = s[1];
    l[T] = s[len];
    l[s[1]] = S;
    r[s[len]] = T;
    for (int i = len; i >= 1; --i) s[i + 1] = s[i];
    s[1] = S;
    len += 2;
    s[len] = T;
  }
  x = s[1];
  int save;
  while (x) {
    int kkk = 0;
    if (a[x]) {
      if (a[l[x]]) {
        int y = l[l[x]];
        if (y && a[y] == 0) {
          kkk = 1;
          a[y] = a[x];
          del(l[x]);
          del(y);
          if (l[x]) x = l[x];
          check(len);
        }
      }
      if (a[r[x]]) {
        int y = r[r[x]];
        if (y && a[y] == 0) {
          kkk = 1;
          if (r[y]) a[y] = a[x];
          del(r[x]);
          del(y);
          if (l[x]) x = l[x];
          check(len);
        }
      }
      if (l[x] && r[x] && kkk == 0) {
        if (a[l[x]] == 0 && a[r[x]] == 0 && top > fuck) {
          kkk = 1;
          a[l[x]] = a[r[x]] = st[top];
          --top;
          x = l[x];
          del(r[r[x]]);
          del(r[x]);
          if (l[x]) x = l[x];
          check(len);
        }
      }
    }
    if (kkk == 0) save = x, x = r[x];
  }
  while (l[save]) save = l[save];
  int dog = 0;
  for (int i = 1; i <= len; ++i)
    if (a[s[i]] == 0) ++dog;
  if ((l[save] || r[save]) && dog == 0 &&
      !(a[save] && a[save] == a[r[r[save]]])) {
    flag = 1;
    return;
  }
  dog = (dog + 1) / 2;
  if (top - dog < fuck) {
    flag = 1;
    return;
  }
  int kkk = 0;
  for (int i = 1; i <= len; ++i)
    if (a[s[i]] == 0) {
      ++kkk;
      if (kkk <= dog)
        a[s[i]] = st[top - kkk + 1];
      else
        a[s[i]] = st[top - dog + 1 + (kkk - dog)];
    }
  top -= dog;
  if (S) {
    l[S] = L1;
    r[S] = R1;
    l[T] = L2;
    r[T] = R2;
  }
}
int main() {
  scanf("%d", &n);
  num = 2 * n - 1;
  for (int i = 1; i <= num; ++i) scanf("%d", &a[i]), br[i] = 1;
  if (a[1] != a[num] && a[1] && a[num]) {
    printf("no\n");
    return 0;
  }
  a[1] = a[num] = max(a[1], a[num]);
  init();
  if (flag) {
    printf("no\n");
    return 0;
  }
  for (int i = 1; i <= num; ++i)
    if (br[i]) {
      sol(i);
      if (flag) {
        printf("no\n");
        return 0;
      }
    }
  printf("yes\n");
  for (int i = 1; i <= num; ++i) printf("%d ", a[i]);
  printf("\n");
  return 0;
}