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<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<string>
#include<stack>
#include<cstdio>
#include<cmath>
using namespace std;

typedef long long ll;
typedef long double ld;
typedef pair<int,int> P;
typedef pair<int,P> P1;

#define fr first
#define sc second
#define mp make_pair
#define pb push_back
#define rep(i,x) for(int i=0;i<x;i++)
#define rep1(i,x) for(int i=1;i<=x;i++)
#define rrep(i,x) for(int i=x-1;i>=0;i--)
#define rrep1(i,x) for(int i=x;i>0;i--)
#define sor(v) sort(v.begin(),v.end())
#define rev(s) reverse(s.begin(),s.end())
#define lb(vec,a) lower_bound(vec.begin(),vec.end(),a)
#define ub(vec,a) upper_bound(vec.begin(),vec.end(),a)
#define uniq(vec) vec.erase(unique(vec.begin(),vec.end()),vec.end())
#define mp1(a,b,c) P1(a,P(b,c))

const int INF=1000000000;
const int dir_4[4][2]={{1,0},{0,1},{-1,0},{0,-1}};
const int dir_8[8][2]={{1,0},{1,1},{0,1},{-1,1},{-1,0},{-1,-1},{0,-1},{1,-1}};

int main(){
	static int N;
	static string s;
	cin >> N >> s;
	
	static int ans[200010] = {};
	
	vector<int> vec;
	int k = 0;
	int a,b,c,d;
	for(int i = 0 ; i < 2*N-1 ; i ++){
		if(s[i] == '0'){
			if(i == 0 || s[i-1] == '1'){
				k ++;
				ans[i] = k;
			}
			else vec.pb(i);
		}
		else {
			//if(i == 2*N-2 || ( i != 0 && s[i-1] == '0')){
			if(i != 0 && s[i-1] == '0'){
				ans[i] = k;
			}
		}
	}
	
	/*for(int i = 0 ; i < 2*N ; i ++){
		printf("%d%c",ans[i],(i==2*N-1)?'\n':' ');
	}*/
	
	if(s[2*N-2] == '0'){
		ans[2*N-1] = k;
	}
	if(vec.size()%2 == 1){
		//puts("1");
		puts("No");
		return 0;
	}
	for(int i = 0 ; i < vec.size() ; i ++){
		if(i%2 == 0)k ++;
		ans[vec[i]] = k;
	}
	
	/*for(int i = 0 ; i < 2*N ; i ++){
		printf("%d%c",ans[i],(i==2*N-1)?'\n':' ');
	}*/
	
	vec.clear();
	for(int i = 0 ; i < 2*N ; i ++){
		if(ans[i] == 0)vec.pb(i);
	}
	if(vec.size()%4 != 0){
		a = -1;
		b = -1;
		for(int i = 0 ; i+1 < vec.size() ; i ++){
			if(vec[i]+1 != vec[i+1]){
				a = vec[i]+1;
				b = vec[i+1]-1;
			}
		}
		if(a == -1){
			//puts("2");
			puts("No");
			return 0;
		}
		c = -1;
		d = -1;
		for(int i = 0 ; i < 2*N ; i ++){
			if(ans[i] != 0 && (i < a || b < i)){
				if(i == 0 || ans[i-1] == 0)c = i;
				if(i == 2*N-1 || ans[i+1] == 0)d = i;
			}
		}
		if(c == -1){
			//puts("3");
			puts("No");
			return 0;
		}
		swap(ans[b],ans[d]);
		k ++;
		ans[a-1] = k;
		ans[b+1] = k;
	}
	vec.clear();
	for(int i = 0 ; i < 2*N ; i ++){
		if(ans[i] == 0)vec.pb(i);
	}
	for(int i = 0 ; i < vec.size() ; i ++){
		if(i%4 == 0 || i%4 == 2){
			ans[vec[i]] = k+1;
		}
		else ans[vec[i]] = k+2;
		if(i%4 == 3)k += 2;
	}
	
	puts("Yes");
	for(int i = 0 ; i < 2*N ; i ++){
		printf("%d%c",ans[i],(i==2*N-1)?'\n':' ');
	}
}