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;
const int N = 1e6 + 7;
int n;
int in[N];
int ans[N];
bool used[N];
vector<int> unused;
int cnt;
deque<pair<int, int> > cur;
vector<pair<int, int> > getEqual;
set<int> S;
vector<int> place[N];
vector<pair<int, int> > order;
bool check() {
  if (in[1] != 0 && in[n + n - 1] != 0 && in[1] != in[n + n - 1]) return false;
  for (int i = 1; i + 1 < n + n; ++i)
    if (in[i] == in[i + 1] && in[i] != 0) return false;
  for (int i = 1; i < n + n; ++i) {
    if (in[i] == 0) continue;
    if (place[in[i]].size() == 0) order.push_back({i, in[i]});
    place[in[i]].push_back(i);
  }
  for (int i = 1; i <= n; ++i)
    for (int j = 1; j < place[i].size(); ++j)
      if (place[i][j] % 2 != place[i][j - 1] % 2) return false;
  S.insert(n + n);
  sort(order.begin(), order.end());
  for (auto v : order) {
    auto it = S.lower_bound(v.first);
    if (*it < place[v.second].back()) return false;
    for (int c : place[v.second]) S.insert(c);
  }
  return true;
}
inline int get() {
  if (unused.size() == 0) {
    puts("no");
    exit(0);
  }
  int ret = unused.back();
  unused.pop_back();
  return ret;
}
void go() {
  deque<pair<int, int> > help;
  while (help.size() + cur.size() >= 3) {
    if (help.size() < 3) {
      help.push_back(cur.front());
      cur.pop_front();
      continue;
    }
    pair<int, int> v1 = help.back();
    help.pop_back();
    pair<int, int> v2 = help.back();
    help.pop_back();
    pair<int, int> v3 = help.back();
    help.pop_back();
    if (v1.first == 0 && v2.first != 0 && v3.first != 0) {
      ans[v1.second] = v3.first;
      help.push_back(v3);
    } else {
      help.push_back(v3);
      help.push_back(v2);
      help.push_back(v1);
    }
    if (cur.size() == 0) break;
    help.push_back(cur.front());
    cur.pop_front();
  }
  while (help.size()) {
    cur.push_back(help.front());
    help.pop_front();
  }
}
void solve(int root) {
  int need = (cur.size() + 1) / 2 - cnt;
  if (need < 0) {
    puts("no");
    exit(0);
  }
  deque<pair<int, int> > help;
  while (cur.size()) {
    auto v = cur.front();
    cur.pop_front();
    if (need > 0 && v.first == 0) {
      --need;
      v.first = get();
      ans[v.second] = v.first;
    }
    help.push_back(v);
  }
  while (help.size()) {
    cur.push_front(help.front());
    help.pop_front();
  }
  go();
  if (root == -1 && cur.back().first == 0) {
    root = cur.front().first;
    ans[cur.back().second] = root;
    cur.pop_front();
    cur.pop_back();
    solve(root);
    return;
  }
  reverse(cur.begin(), cur.end());
  go();
  while (cur.size() > 0) {
    auto v = cur.front();
    cur.pop_front();
    if (v.first == 0) ans[v.second] = root;
  }
}
int main() {
  scanf("%d", &n);
  for (int i = 1; i < n + n; ++i) {
    scanf("%d", &in[i]);
    used[in[i]] = true;
  }
  if (!check()) {
    puts("no");
    return 0;
  }
  if (in[1] != 0)
    in[n + n - 1] = in[1];
  else if (in[n + n - 1] != 0)
    in[1] = in[n + n - 1];
  for (int i = 1; i <= n; ++i) {
    if (!used[i]) unused.push_back(i);
    used[i] = false;
  }
  for (int i = 1; i < n + n; ++i) ans[i] = in[i];
  for (int i = 1; i < n + n; ++i) {
    if (in[i] == 0) {
      getEqual.push_back({in[i], i});
      continue;
    }
    if (used[in[i]]) {
      cnt = 0;
      while (getEqual.back().first != in[i]) {
        if (getEqual.back().first > 0) {
          ++cnt;
          used[getEqual.back().first] = false;
        }
        cur.push_front(getEqual.back());
        getEqual.pop_back();
      }
      solve(in[i]);
      continue;
    }
    getEqual.push_back({in[i], i});
    used[in[i]] = true;
  }
  cnt = 0;
  while (getEqual.size()) {
    if (getEqual.back().first > 0) {
      ++cnt;
      used[getEqual.back().first] = false;
    }
    cur.push_front(getEqual.back());
    getEqual.pop_back();
  }
  solve(-1);
  puts("yes");
  for (int i = 1; i < n + n; ++i)
    printf("%d%c", ans[i], i == n + n - 1 ? '\n' : ' ');
  return 0;
}