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 get() {
  char ch;
  while (ch = getchar(), (ch < '0' || ch > '9') && ch != '-')
    ;
  if (ch == '-') {
    int s = 0;
    while (ch = getchar(), ch >= '0' && ch <= '9') s = s * 10 + ch - '0';
    return -s;
  }
  int s = ch - '0';
  while (ch = getchar(), ch >= '0' && ch <= '9') s = s * 10 + ch - '0';
  return s;
}
const int N = 1e6 + 5;
int n;
int a[N];
int fi[N];
bool ans;
int w[N];
int lst[N], nxt[N];
int pre[N], suf[N];
int pos[N], k;
bool used[N];
int sta[N], top;
int Nxt[N], hd[N];
void getans(int l, int r) {
  if (l == r) return;
  if (a[pos[l]]) {
    int v = pre[l];
    int lst = l;
    for (; hd[v] && hd[v] <= r; hd[v] = Nxt[hd[v]]) {
      if (hd[v] > l && !a[pos[hd[v]]]) {
        a[pos[hd[v]]] = a[pos[l]];
        getans(lst + 1, hd[v] - 1);
        lst = hd[v];
      }
    }
    return;
  }
  if (a[pos[r]]) {
    int lst = 0;
    int v = pre[l];
    for (; hd[v] && hd[v] <= r; hd[v] = Nxt[hd[v]]) {
      if (hd[v] >= l && !a[pos[hd[v]]]) {
        a[pos[hd[v]]] = a[pos[r]];
        if (lst) getans(lst + 1, hd[v] - 1);
        lst = hd[v];
      }
    }
    getans(lst + 1, r - 1);
    return;
  }
  int v = pre[r];
  for (; hd[v] && hd[v] < l; hd[v] = Nxt[hd[v]])
    ;
  getans(l, hd[v]);
  getans(hd[v], r);
}
bool solve(int l, int r, int tp) {
  if (l == r) {
    if (!a[l]) a[l] = sta[top--];
    return 1;
  }
  for (int x = l; x <= r;) {
    if (nxt[x]) {
      if (!solve(x + 1, nxt[x] - 1, a[x])) return 0;
      x = nxt[x];
    } else
      x++;
  }
  k = 0;
  for (int x = l; x <= r;) {
    if (nxt[x])
      x = nxt[x];
    else
      pos[++k] = x++;
  }
  int known = 0;
  for (int i = 1; i <= k; i++)
    if (a[pos[i]]) known++;
  if (k % 2 == 0 || known > k / 2 + 1) return 0;
  known = k / 2 + 1 - known;
  if (!a[pos[1]]) {
    for (int i = k; i >= 1; i--)
      if (!a[pos[i]] && known) {
        known--;
        a[pos[i]] = sta[top--];
      }
  } else {
    for (int i = 1; i <= k; i++)
      if (!a[pos[i]] && known) {
        known--;
        a[pos[i]] = sta[top--];
      }
  }
  pre[0] = n;
  for (int i = 1; i <= k; i++)
    if (a[pos[i]])
      pre[i] = pre[i - 1] + 1;
    else
      pre[i] = pre[i - 1] - 1;
  int t = k / 2 + 1;
  for (int i = n - t; i <= n + t; i++) hd[i] = 0;
  for (int i = k; i >= 1; i--) {
    Nxt[i] = hd[pre[i]];
    hd[pre[i]] = i;
  }
  if (k == 1) return 1;
  if (tp) {
    int lst = 0;
    for (int i = 1; i <= k; i++)
      if (!a[pos[i]] && pre[i] == pre[0]) {
        a[pos[i]] = tp;
        getans(lst + 1, i - 1);
        lst = i;
      }
    getans(lst + 1, k);
  } else {
    if (a[pos[1]] && a[pos[k]]) return 0;
    getans(1, k);
  }
  return 1;
}
int main() {
  n = get();
  for (int i = 1; i <= n * 2 - 1; i++) a[i] = get();
  ans = 1;
  for (int i = 1; i <= n * 2 - 1; i++)
    if (a[i]) {
      used[a[i]] = 1;
      if (!fi[a[i]])
        fi[a[i]] = i;
      else {
        if (fi[a[i]] % 2 != i % 2) ans = 0;
      }
    }
  for (int i = 1; i <= n; i++)
    if (!used[i]) sta[++top] = i;
  if (!ans) return printf("no\n"), 0;
  for (int i = 1; i <= n * 2 - 1; i++)
    if (a[i]) {
      lst[i] = w[a[i]];
      w[a[i]] = i;
    }
  for (int i = 1; i <= n; i++) w[i] = 0;
  for (int i = n * 2 - 1; i >= 1; i--)
    if (a[i]) {
      nxt[i] = w[a[i]];
      w[a[i]] = i;
    }
  if (ans) {
    for (int i = 1; i <= n; i++)
      if (lst[i]) {
        for (int x = i - 1; x > lst[i];) {
          if (nxt[x] > i) {
            ans = 0;
            break;
          }
          if (lst[x])
            x = lst[x];
          else
            x--;
        }
        if (!ans) break;
      }
  }
  if (!ans) return printf("no\n"), 0;
  if (n > 1 && a[1] && a[n * 2 - 1] && a[1] != a[n * 2 - 1])
    return printf("no\n"), 0;
  for (int i = 1; i <= n * 2 - 1; i++) pre[i] = suf[i] = 0;
  ans = solve(1, n * 2 - 1, 0);
  if (!ans)
    printf("no\n");
  else {
    printf("yes\n");
    for (int i = 1; i <= n * 2 - 1; i++)
      printf("%d%c", a[i], i == n * 2 - 1 ? '\n' : ' ');
  }
  return 0;
}