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:
#include <bits/stdc++.h>
 
using namespace std;
#define PB push_back
#define MP make_pair
#define LL long long
#define int LL
#define FOR(i,a,b) for(int i = (a); i <= (b); i++)
#define RE(i,n) FOR(i,1,n)
#define REP(i,n) FOR(i,0,(int)(n)-1)
#define R(i,n) REP(i,n)
#define VI vector<int>
#define PII pair<int,int>
#define LD long double
#define FI first
#define SE second
#define st FI
#define nd SE
#define ALL(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
 
template<class C> void mini(C &a4, C b4) { a4 = min(a4, b4); }
template<class C> void maxi(C &a4, C b4) { a4 = max(a4, b4); }
 
template<class TH> void _dbg(const char *sdbg, TH h){ cerr<<sdbg<<'='<<h<<endl; }
template<class TH, class... TA> void _dbg(const char *sdbg, TH h, TA... a) {
  while(*sdbg!=',')cerr<<*sdbg++;cerr<<'='<<h<<','; _dbg(sdbg+1, a...);
}
 
template<class T> ostream &operator<<(ostream& os, vector<T> V) {
  os << "["; for (auto vv : V) os << vv << ","; return os << "]";
}
template<class L, class R> ostream &operator<<(ostream &os, pair<L,R> P) {
  return os << "(" << P.st << "," << P.nd << ")";
}
 
#ifdef LOCAL
#define debug(...) _dbg(#__VA_ARGS__, __VA_ARGS__)
#else
#define debug(...) (__VA_ARGS__)
#define cerr if(0)cout
#endif
 
const int MAX = 2e5 + 10;
int n;
string s;
int res[MAX];
int znaj(int a){
  while(1){
    a++;
    if(a == 2*n)a = 0;
    if(res[a] != 0)return a;
  }
}
int sumk[MAX];
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout << fixed << setprecision(11);
  cerr << fixed << setprecision(6);
  cin >> n >> s;
  s+='1';
  int ost = 1;
  int ak = 1;
  int il = 2*n + 1;
  vector<int> spec;
  bool cz = 0;
  int ilx = 0;
  R(i,n*2){
    if(s[i] == '0'){
      cz = 0;
      if(ost == 0){
        res[i] = il / 2;
        il--;
      }else{
        res[i] = ak;
      }
      ost = 0;
    }else{
      if(ost == 0){
        res[i] = ak;
        ak++;
      }else{
        if(cz == 0){
          cz = 1;
          spec.PB(i);
        }
        ilx++;
      }
      ost = 1;
    }
  }
  if(ilx&1){
    cout << "No\n";
    return 0;
  }
  
  R(i,n*2){
    cerr << res[i] << " ";
  }
  cerr << "\n";
  debug(ilx);
  
  
    debug(spec);
  if(ilx % 4 == 2){
    debug(s[0],s[2 * n - 2]);
    if(s[0] == '1' && s[2 * n - 2] == '1'){
      spec.pop_back();
    }
    debug(spec);
    if(SZ(spec) <= 1){
      cout << "No\n";
      return 0;
    }
    res[spec[0]] = ak;
    res[spec[1]] = ak;
    ak++;
    int a = znaj(spec[0]);
    int b = znaj(spec[1]);
    swap(res[a],res[b]);
  }
  
  R(i,n*2){
    sumk[res[i]] += i;
  }
  cout << "Yes\n";
  
  R(i,n*2){
    cerr << res[i] << " ";
  }
  cerr << "\n";
  int x = 0;
  vector<int> pom;
  while(x != 2 * n){
    if(res[x] != 0){
      x = sumk[res[x]] - x;
    }
    if(res[x] == 0)
      pom.PB(x);
    x++;
  }
  debug(pom);
  for(int i = 0;i < SZ(pom);i+=4){
    res[pom[i]] = ak;
    res[pom[i+1]] = ak+1;
    res[pom[i+2]] = ak;
    res[pom[i+3]] = ak+1;
    ak+=2;
  }
  R(i,n*2){
    cout << res[i] << " ";
  }
  cout << "\n";
}