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>
bool existence[1000002], sub_existence[1000002];
long a[1000002], real_number[1000002];
long fake_number[1000002], map[1000002];
std::stack<long> not_existence_number;
std::vector<long> sequence;
std::stack<long> sequence_order;
std::vector<bool> not_use;
void get_not_existence_number(long* a, long n) {
  long i;
  for (i = 1; i <= n; i++) existence[i] = false;
  for (i = 0; i < 2 * n + 1; i++) existence[a[i]] = true;
  for (i = 1; i <= n; i++)
    if (!existence[i]) not_existence_number.push(i);
}
void generate_sequence(std::vector<long>& x) {
  long top = sequence.back(), i;
  sequence.pop_back();
  x.push_back(top);
  while (sequence.back() != top) {
    i = sequence.back();
    existence[i] = false;
    not_use[i] = true;
    x.push_back(i);
    sequence.pop_back();
  }
  x.push_back(top);
}
bool generate_sub_existence(std::vector<long>& x) {
  long i, num = 0, length = x.size(), n = (length + 1) / 2;
  if (length % 2 == 0) return false;
  for (i = 0; i < length; i++)
    if (x[i] != 0) num++;
  num--;
  if (n - num > not_existence_number.size()) return false;
  for (i = 0; i < length; i++) {
    if ((x[i] == 0) && (num < n)) {
      x[i] = not_existence_number.top();
      not_existence_number.pop();
      num++;
    }
    if (num >= n) break;
  }
  for (i = 0; i < length; i++)
    if (x[i] != 0)
      sub_existence[i] = true;
    else
      sub_existence[i] = false;
  return true;
}
bool generate_real_number(std::vector<long>& x) {
  std::vector<long> y;
  long n = (x.size() + 1) / 2, i, num = 0;
  for (i = 0; i < 2 * n - 1; i++) fake_number[i] = 0;
  i = 0;
  while (num < n) {
    if (sub_existence[i]) {
      num++;
      fake_number[i] = num;
    }
    i++;
  }
  fake_number[2 * n - 2] = fake_number[0];
  for (i = 0; i < 2 * n - 1; i++) {
    y.push_back(i);
    while (y.size() >= 3) {
      num = y.size() - 1;
      if (!sub_existence[y[num]] && sub_existence[y[num - 1]] &&
          sub_existence[y[num - 2]]) {
        fake_number[y[num]] = fake_number[y[num - 2]];
        y.pop_back();
        y.pop_back();
      } else if (sub_existence[y[num]] && sub_existence[y[num - 1]] &&
                 !sub_existence[y[num - 2]]) {
        fake_number[y[num - 2]] = fake_number[y[num]];
        sub_existence[y[num - 2]] = true;
        y.pop_back();
        y.pop_back();
      } else
        break;
    }
  }
  for (i = 0; i < 2 * n - 1; i++)
    if (x[i] != 0) map[fake_number[i]] = x[i];
  for (i = 0; i < 2 * n - 1; i++) x[i] = map[fake_number[i]];
  return true;
}
bool deal_with_stack() {
  long j;
  std::vector<long> new_sequence;
  generate_sequence(new_sequence);
  if (!generate_sub_existence(new_sequence)) return false;
  if (!generate_real_number(new_sequence)) return false;
  for (long i = 0; i < new_sequence.size() - 1; i++) {
    j = sequence_order.top();
    a[j] = new_sequence[i];
    sequence_order.pop();
  }
  return true;
}
bool judge_first_and_end(long length) {
  long end = sequence.size() - 1;
  if (sequence[0] != 0)
    sequence[end] = sequence[0];
  else if (sequence[end] != 0)
    sequence[0] = sequence[end];
  else {
    if (not_existence_number.size() > 0) {
      sequence[0] = sequence[end] = not_existence_number.top();
      not_existence_number.pop();
    } else {
      long i, num = 0;
      for (i = 0; i < sequence.size(); i++)
        if (sequence[i] != 0) {
          num++;
          if (2 * num - 2 <= i && i % 2 == 0) {
            sequence[0] = sequence[end] = sequence[i];
            break;
          }
        }
      if (i == sequence.size()) return false;
      if (!deal_with_stack()) return false;
    }
  }
  a[0] = sequence[0];
  a[2 * length - 2] = sequence[end];
  return true;
}
int main() {
  using namespace std;
  long n, i;
  bool result = true;
  cin >> n;
  for (i = 0; i < 2 * n - 1; i++) cin >> a[i];
  get_not_existence_number(a, n);
  for (i = 0; i <= n; i++) existence[i] = false;
  for (i = 0; i <= n; i++) not_use.push_back(false);
  for (i = 0; i < 2 * n - 1; i++) {
    if ((a[i] != 0) && (not_use[a[i]])) {
      result = false;
      break;
    }
    sequence.push_back(a[i]);
    sequence_order.push(i);
    if (existence[a[i]])
      if (!deal_with_stack()) {
        result = false;
        break;
      }
    if ((a[i] != 0) && (!existence[a[i]])) existence[a[i]] = true;
  }
  if (result && judge_first_and_end(n)) {
    if (sequence.size() > 1)
      if (!deal_with_stack()) result = false;
  } else
    result = false;
  if (!result)
    cout << "no";
  else {
    cout << "yes" << endl;
    for (i = 0; i < 2 * n - 1; i++)
      if (i != 2 * n - 2)
        cout << a[i] << " ";
      else
        cout << a[i];
  }
  return 0;
}