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>
template <class T>
inline void read(T &x) {
  static char ch;
  while (!isdigit(ch = getchar()))
    ;
  x = ch - '0';
  while (isdigit(ch = getchar())) x = x * 10 + ch - '0';
}
template <class T>
inline void putint(T x) {
  static char buf[15], *tail = buf;
  if (!x)
    putchar('0');
  else {
    for (; x; x /= 10) *++tail = x % 10 + '0';
    for (; tail != buf; --tail) putchar(*tail);
  }
}
const int MaxN = 1e6 + 5;
int n, m;
int a[MaxN];
bool vis[MaxN];
std::vector<int> rest;
int pre[MaxN], nxt[MaxN];
int lstsame[MaxN], nxtsame[MaxN];
inline void invalid() {
  puts("no");
  exit(0);
}
inline void same_init() {
  static int lst[MaxN];
  for (int i = 1; i <= m; ++i)
    if (a[i]) {
      lstsame[i] = lst[a[i]];
      lst[a[i]] = i;
    }
  for (int i = 1; i <= n; ++i) lst[i] = m + 1;
  for (int i = m; i >= 1; --i)
    if (a[i]) {
      nxtsame[i] = lst[a[i]];
      lst[a[i]] = i;
    }
}
inline int getnew() {
  if (rest.empty()) invalid();
  int res = *rest.rbegin();
  return rest.pop_back(), res;
}
inline void merge(int x, int y) { nxt[x] = nxt[y], pre[nxt[y]] = x; }
inline void solve(int l, int r, int rt) {
  if ((r - l) & 1) invalid();
  if (l > r) return;
  for (int x = l; x <= r; x = nxt[x])
    if (a[x] && a[x] != rt) {
      if (lstsame[x] >= 1 && lstsame[x] < l) invalid();
      if (nxtsame[x] <= m && nxtsame[x] > r) invalid();
    }
  for (int x = l; x <= r; x = nxt[x])
    if (a[x] && lstsame[x] >= l) {
      int y = lstsame[x];
      solve(nxt[y], pre[x], a[x]);
      merge(y, x);
      lstsame[nxtsame[x]] = y;
      nxtsame[y] = nxtsame[x];
    }
  int cnt = 0, lim = 0;
  for (int x = l; x <= r; x = nxt[x]) cnt += (bool)a[x], ++lim;
  lim = (lim >> 1) + 1;
  if (cnt > lim) invalid();
  if (cnt < lim) {
    for (int x = l; x <= r && cnt < lim; x = nxt[x])
      if (!a[x]) {
        a[x] = getnew();
        ++cnt;
      }
  }
  for (int x = l; x <= r; x = nxt[x]) {
    int y = pre[x], z = pre[y];
    while (z >= l) {
      if ((!a[x] && a[y] && a[z]) || (a[x] && a[y] && !a[z])) {
        a[x] = a[z] = a[x] + a[z];
        merge(z, x), x = z;
      } else
        break;
      y = pre[x], z = pre[y];
    }
  }
  for (int x = l; x <= std::min(r + 1, m); x = nxt[x])
    if (!a[x]) a[x] = rt;
}
int main() {
  read(n), m = (n << 1) - 1;
  for (int i = 1; i <= m; ++i) read(a[i]), vis[a[i]] = true;
  for (int i = 1; i <= n; ++i)
    if (!vis[i]) rest.push_back(i);
  for (int i = 1; i <= m; ++i) {
    pre[i] = i - 1;
    nxt[i] = i + 1;
  }
  if (a[1] && a[m]) {
    if (a[1] != a[m]) invalid();
  } else if (a[1] || a[m])
    a[1] = a[m] = a[1] + a[m];
  else {
  }
  same_init();
  solve(1, m, 0);
  puts("yes");
  for (int i = 1; i <= m; ++i) putint(a[i]), putchar(" \n"[i == m]);
  return 0;
}