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;
namespace Base {
const int inf = 0x3f3f3f3f, INF = 0x7fffffff;
const long long infll = 0x3f3f3f3f3f3f3f3fll, INFll = 0x7fffffffffffffffll;
template <typename T>
void read(T &x) {
  x = 0;
  int fh = 1;
  double num = 1.0;
  char ch = getchar();
  while (!isdigit(ch)) {
    if (ch == '-') fh = -1;
    ch = getchar();
  }
  while (isdigit(ch)) {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  if (ch == '.') {
    ch = getchar();
    while (isdigit(ch)) {
      num /= 10;
      x = x + num * (ch - '0');
      ch = getchar();
    }
  }
  x = x * fh;
}
template <typename T>
void chmax(T &x, T y) {
  x = x < y ? y : x;
}
template <typename T>
void chmin(T &x, T y) {
  x = x > y ? y : x;
}
}  // namespace Base
using namespace Base;
const int N = 1000010;
int n, m, place, flag, it;
int pre[N], bak[N], a[N], cnt[N], id[N], sam[N], nid[N], f[N], suf[N];
int stx[N], stid[N], fre[N], p[N], inx[N], inid[N], use[N];
int dad(int x) {
  if (f[x] == x)
    return f[x];
  else
    return f[x] = dad(f[x]);
}
void exor(int x) {
  printf("no\n");
  exit(0);
}
void merge(int len, int start, int endpos) {
  int r = id[len], l = id[1];
  for (int i = 1; i < len; i++) suf[id[i]] = id[i + 1];
  for (int i = 2; i <= len; i++) pre[id[i]] = id[i - 1];
  suf[start] = id[1];
  pre[id[1]] = start;
  pre[endpos] = id[len];
  suf[id[len]] = endpos;
  suf[endpos] = endpos + 1;
  pre[start] = start - 1;
  int cnt = 0, all = 0;
  for (int i = suf[start]; i <= r; i = suf[i]) all++, cnt += a[i] != 0;
  int goal = (all + 1) / 2;
  if (cnt > goal) exor(0);
  for (int i = suf[suf[start]]; i <= r && cnt < goal; i = suf[i]) {
    if (a[i] == 0) {
      cnt++;
      a[i] = fre[++place];
    }
  }
  if (all != 1) {
    for (int i = suf[start], j = suf[suf[start]]; j <= r;
         i = suf[i], j = suf[j]) {
      while (i > suf[start] && a[i] && a[j]) {
        int tmp = pre[i];
        if (a[tmp] == 0) {
          a[tmp] = a[j];
          int tnp = pre[tmp];
          suf[tnp] = j, pre[j] = tnp;
          i = tnp;
        } else
          break;
      }
      while (j < r && a[i] && a[j]) {
        int tmp = suf[j];
        if (a[tmp] == 0) {
          a[tmp] = a[i];
          int tnp = suf[tmp];
          suf[i] = tnp, pre[tnp] = i;
          if (pre[i] >= l)
            j = i, i = pre[i];
          else
            j = tnp;
        } else
          break;
      }
    }
    for (int i = suf[start]; i <= r; i = suf[i])
      if (a[i] == 0) a[i] = a[start];
  } else if (cnt == 0)
    a[suf[start]] = fre[++place];
  endpos = pre[endpos];
  suf[start] = endpos;
  pre[endpos] = start;
}
void solve(int l, int r, int start, int endpos) {
  if ((r - l) % 2 != 0) exor(0);
  int k = 0;
  for (int i = l; i <= r;) {
    if (nid[i] <= r) {
      if (use[a[i + 1]] + use[a[nid[i] - 1]] > 0) exor(0);
      solve(i + 1, nid[i] - 1, i, nid[i]);
      use[a[i + 1]] = use[a[nid[i] - 1]] = true;
      f[i] = nid[i];
      i = nid[i];
    } else
      i = dad(i + 1);
  }
  for (int i = dad(l); i <= r; i = dad(i + 1)) id[++k] = i;
  merge(k, start, endpos);
  for (int i = 2; i < k; i++)
    if (use[a[id[i]]] == true && a[id[i]] != a[id[1]]) exor(0);
}
int main() {
  read(n);
  for (int i = 1; i <= n; i++) pre[i] = 2 * n, bak[i] = 0, id[i] = -1;
  for (int i = 1; i < 2 * n; i++) {
    read(a[i]);
    cnt[a[i]]++;
    if (a[i] == 0) continue;
    pre[a[i]] = min(pre[a[i]], i);
    bak[a[i]] = max(bak[a[i]], i);
    if (id[a[i]] == -1)
      id[a[i]] = i % 2;
    else if (id[a[i]] != i % 2)
      flag = false;
  }
  if (a[1] == 0 && a[n * 2 - 1] != 0) a[1] = a[n * 2 - 1];
  if (a[1] != 0 && a[n * 2 - 1] == 0) a[2 * n - 1] = a[1];
  if (a[1] != a[n * 2 - 1]) exor(0);
  for (int i = 1; i <= 2 * n; i++) f[i] = i;
  for (int i = 0; i <= n; i++) p[i] = n * 2;
  for (int i = 1; i <= 2 * n; i++) sam[i] = inf;
  for (int i = 2 * n - 1; i >= 1; i--) {
    nid[i] = p[a[i]];
    if (p[a[i]] != n * 2 && a[i] != 0) sam[i] = i;
    if (a[i] != 0) p[a[i]] = i;
  }
  for (int i = 1; i <= n; i++)
    if (cnt[i] == 0) fre[++m] = i;
  for (int i = 2 * n - 1; i >= 1; i--) sam[i] = min(sam[i], sam[i + 1]);
  solve(1, 2 * n - 1, 0, 2 * n);
  printf("yes\n");
  for (int i = 1; i < 2 * n; i++)
    printf("%d%c", a[i], (i != 2 * n - 1) ? ' ' : '\n');
  return 0;
}