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>
#define fi first
#define se second
#define pii pair<int,int>
#define pdi pair<db,int>
#define mp make_pair
#define pb push_back
#define enter putchar('\n')
#define space putchar(' ')
#define eps 1e-8
#define MAXN 200005
#define mo 974711
//#define ivorysi
using namespace std;
typedef long long int64;
typedef double db;
template<class T>
void read(T &res) {
    res = 0;char c = getchar();T f = 1;
    while(c < '0' || c > '9') {
	if(c == '-') f = -1;
	c = getchar();
    }
    while(c >= '0' && c <= '9') {
	res = res * 10 + c - '0';
	c = getchar();
    }
    res *= f;
}
template<class T>
void out(T x) {
    if(x < 0) {x = -x;putchar('-');}
    if(x >= 10) {
	out(x / 10);
    }
    putchar('0' + x % 10);
}

int N,ans[MAXN],tot,t[MAXN],to[MAXN];
char s[MAXN];
vector<int> f;
bool vis[MAXN];
void Solve() {
    read(N);
    scanf("%s",s + 2);
    s[1] = '1';
    int cnt = 0;
    for(int i = 1 ; i < 2 * N ; ++i) {
	    if(s[i] == '1' && s[i + 1] == '1') {++cnt;t[i] = 1;}
    }
    if(s[2 * N] == '1') {++cnt;t[2 * N] = 1;}
    if(cnt & 1) {puts("No");return;}
    bool flag = 0;
    if(cnt % 4 != 0) {
	int a = 1,b = 2 * N;
	int c = 0;
	while(t[a] == 1 && a <= 2 * N) ++a;
	--a;

	while(t[b] == 1 && b >= 1) --b;
    	++b;
    	if(a > b) {puts("No");return;}
    	if(a >= 1 || b <= 2 * N) ++c;
    	for(int i = a + 1 ; i <= b - 1 ; ++i) {
    	    if(t[i] == 1 && t[i - 1] != 1) ++c;
    	}
    	if(c < 2) {puts("No");return;}
        if(c == 2 && a < 1 && b <= 2 * N) flag = 1;
    }
    puts("Yes");
    if(flag) {
        f.clear();
        int ano;
        for(int i = 1 ; i <= 2 * N ; ++i) {
            if(t[i] == 1) {
                ans[i] = ++tot;ans[2 * N] = tot;
                ano = i;
                break;
            }
        }
        int p = 2 * N;
        while(t[p] == 1) --p;
        ans[p] = ++tot;ans[1] = tot;
        for(int i = p + 1 ; i < 2 * N ; ++i) f.pb(i);
        p = ano;
        while(t[p] == 1) ++p;
        for(int i = ano + 1 ; i < p ; ++i) f.pb(i);
        while(1) {
            int h = p;
            while(s[h + 1] == '0') ++h;
            if(ans[h]) break;
            ans[h] = ++tot;ans[p] = tot;
            p = h + 1;
        }
        ans[p] = ++tot;ans[ano - 1] = tot;
        int siz = f.size();
        for(int i = 0 ; i < siz ; i += 4) {
            ans[f[i]] = ++tot;ans[f[i + 2]] = tot;
            ans[f[i + 1]] = ++tot;ans[f[i + 3]] = tot;
        }
        f.clear();
        for(int i = 1 ; i <= 2 * N ; ++i) if(!ans[i]) f.pb(i);
        siz = f.size();
        for(int i = 0 ; i < siz ; i += 2) {
            ans[f[i]] = ++tot;ans[f[i + 1]] = tot;
        }
        for(int i = 1 ; i <= 2 * N ; ++i) {out(ans[i]);space;}
        enter;
        return ;
    }
    if(cnt % 4 == 2) {

    	for(int i = 1 ; i <= 2 * N ; ++i) {
    	    if(t[i] == 1 && t[i - 1] == 0) f.pb(i);
    	}
    	ans[f[0]] = ++tot;ans[f[1]] = tot;
        to[f[0]] = f[1] + 1;to[f[1]] = f[0] + 1;
    	int k = f[1];
    	while(t[k] == 1) ++k;
    	ans[k] = ++tot;ans[f[1] - 1] = tot;
    	to[k] = f[1] - 1;to[f[1] - 1] = k;
    }

    int p = 1;
    f.clear();
    while(p <= 2 * N) {
    	vis[p] = 1;
    	if(t[p] && !ans[p]) f.pb(p);
    	if(p >= 2 * N) break;
    	if(to[p] && !vis[to[p]]) p = to[p];
    	else if(s[p + 1] == '1' && !vis[p + 1]) ++p;
    	else {
    	    int k = p;
    	    while(k < 2 * N && (s[k + 1] == '0' || vis[k])) ++k;
    	    ans[p] = ++tot;ans[k] = tot;
    	    p = k + 1;
    	    while(p <= 2 * N && vis[p]) ++p;
    	}

    }
    int siz = f.size();
    for(int i = 0 ; i < siz ; i += 4) {
        ans[f[i]] = ++tot;ans[f[i + 2]] = tot;
        ans[f[i + 1]] = ++tot;ans[f[i + 3]] = tot;
    }
    f.clear();
    for(int i = 1 ; i <= 2 * N ; ++i) {
    	if(!ans[i]) f.pb(i);
    }
    siz = f.size();
    for(int i = 0 ; i < siz ; i += 2) {
        ans[f[i]] = ++tot;ans[f[i + 1]] = tot;
    }
    for(int i = 1 ; i <= 2 * N ; ++i) {out(ans[i]);space;}
    enter;
}
int main() {
#ifdef ivorysi
    freopen("f1.in","r",stdin);
#endif
    Solve();
}