Problem: There is a bridge that connects the left and right banks of a river. There are 2 N doors placed at different positions on this bridge, painted in some colors. The colors of the doors are represented by integers from 1 through N. For each k (1 \leq k \leq N), there are exactly two doors painted in Color k.

Snuke decides to cross the bridge from the left bank to the right bank. He will keep on walking to the right, but the following event will happen while doing so:

* At the moment Snuke touches a door painted in Color k (1 \leq k \leq N), he teleports to the right side of the other door painted in Color k.



It can be shown that he will eventually get to the right bank.

For each i (1 \leq i \leq 2 N - 1), the section between the i-th and (i + 1)-th doors from the left will be referred to as Section i. After crossing the bridge, Snuke recorded whether or not he walked through Section i, for each i (1 \leq i \leq 2 N - 1). This record is given to you as a string s of length 2 N - 1. For each i (1 \leq i \leq 2 N - 1), if Snuke walked through Section i, the i-th character in s is `1`; otherwise, the i-th character is `0`.

<image>

Figure: A possible arrangement of doors for Sample Input 3

Determine if there exists an arrangement of doors that is consistent with the record. If it exists, construct one such arrangement.

Constraints

* 1 \leq N \leq 10^5
* |s| = 2 N - 1
* s consists of `0` and `1`.

Input

Input is given from Standard Input in the following format:


N
s


Output

If there is no arrangement of doors that is consistent with the record, print `No`. If there exists such an arrangement, print `Yes` in the first line, then print one such arrangement in the second line, in the following format:


c_1 c_2 ... c_{2 N}


Here, for each i (1 \leq i \leq 2 N), c_i is the color of the i-th door from the left.

Examples

Input

2
010


Output

Yes
1 1 2 2


Input

2
001


Output

No


Input

3
10110


Output

Yes
1 3 2 1 2 3


Input

3
10101


Output

No


Input

6
00111011100


Output

Yes
1 6 1 2 3 4 4 2 3 5 6 5

Solution (in CPP):

Solution:
/**
 *    author:  tourist
 *    created: 20.12.2019 15:16:25       
**/
#undef _GLIBCXX_DEBUG

#include <bits/stdc++.h>

using namespace std;

vector<int> SolveSmall(string s) {
  int n = (int) s.size() / 2;
  vector<int> a(2 * n);
  iota(a.begin(), a.begin() + n, 0);
  iota(a.begin() + n, a.end(), 0);
  sort(a.begin(), a.end());
  string t(2 * n, '1');
  vector<int> go(n);
  do {
    fill(t.begin(), t.end() - 1, '0');
    fill(go.begin(), go.end(), 0);
    for (int i = 0; i < 2 * n; i++) {
      go[a[i]] ^= i;
    }
    int i = -1;
    while (i != 2 * n - 1) {
      if (i >= 0) {
        t[i] = '1';
      }
      i++;
      i ^= go[a[i]];
    }
    if (s == t) {
      return a;
    }
  } while (next_permutation(a.begin(), a.end()));
  return vector<int>();
}

vector<int> SolveWithAtMostTwoZeros(string s) {
  int n = (int) s.size() / 2;
  vector<int> add(1, 0);
  string t = "";
  for (int i = 0; i < 2 * n; i++) {
    if (s.substr(i, 6) == "111111") {
      add.back() += 1;
      i += 3;
      continue;
    }
    t += s[i];
    add.push_back(0);
  }
  vector<int> got = SolveSmall(t);
  if (got.empty()) {
    return vector<int>();
  }
  vector<int> ret;
  int ptr = (int) t.size() / 2;
  for (int i = 0; i < (int) got.size(); i++) {
    ret.push_back(got[i]);
    for (int j = 0; j < add[i]; j++) {
      ret.push_back(ptr);
      ret.push_back(ptr + 1);
      ret.push_back(ptr);
      ret.push_back(ptr + 1);
      ptr += 2;
    }
  }
  return ret;
}

vector<int> SolveWithoutDoubleZeros(string s) {
  int n = (int) s.size() / 2;
  int start = 1;
  for (int i = 0; i < 2 * n; i++) {
    if (s[i] == '1' && s[(i + 1) % (2 * n)] == '1') {
      start = i;
      break;
    }
  }
  int x = (start + 2 * n - 1) % (2 * n);
  int y = (start + 1) % (2 * n);
  while (x != start && s[x] == '1') {
    x = (x + 2 * n - 1) % (2 * n);
  }
  while (y != start && s[y] == '1') {
    y = (y + 1) % (2 * n);
  }
  if (x == start) {
    return SolveWithAtMostTwoZeros(s);
  }
  vector<int> add(1, 0);
  string t = "";
  for (int i = 0; i < 2 * n; i++) {
    if (s[i] == '0' && i != x && i != y) {
      add.back() += 1;
      i += 1;
      continue;
    }
    t += s[i];
    add.push_back(0);
  }
  vector<int> got = SolveWithAtMostTwoZeros(t);
  if (got.empty()) {
    return vector<int>();
  }
  vector<int> ret;
  int ptr = (int) t.size() / 2;
  for (int i = 0; i <= (int) got.size(); i++) {
    for (int j = 0; j < add[i]; j++) {
      ret.push_back(ptr);
      ret.push_back(ptr);
      ptr += 1;
    }
    if (i < (int) got.size()) {
      ret.push_back(got[i]);
    }
  }
  return ret;
}

vector<int> Solve(string s) {
  vector<int> add;
  string t = "";
  for (char c : s) {
    if (c == '0' && !t.empty() && t.back() == '0') {
      add.back() += 1;
      continue;
    }
    t += c;
    add.push_back(0);
  }
  if (t.size() % 2 == 1) {
    return vector<int>();
  }
  vector<int> got = SolveWithoutDoubleZeros(t);
  if (got.empty()) {
    return vector<int>();
  }
  vector<int> ret;
  int ptr = (int) t.size();
  for (int i = 0; i < (int) got.size(); i++) {
    ret.push_back(got[i]);
    for (int j = 0; j < add[i]; j++) {
      ret.push_back(ptr / 2);
      ptr += 1;
    }
  }
  return ret;
}

int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  string s;
  cin >> s;
  s += "1";
  vector<int> ret = Solve(s);
  if (ret.empty()) {
    cout << "No" << '\n';
  } else {
    cout << "Yes" << '\n';
    for (int i = 0; i < (int) ret.size(); i++) {
      if (i > 0) {
        cout << " ";
      }
      cout << ret[i] + 1;
    }
    cout << '\n';
  }
  return 0;
}