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 <algorithm>  
#include <iostream>  
#include <sstream>  
#include <string>  
#include <cstring>
#include <vector>  
#include <queue>  
#include <set>  
#include <map>  
#include <cstdio>  
#include <cstdlib>  
#include <cctype>  
#include <cmath>  
#include <list>  
#include <cassert>
#include <ctime>
#include <climits>
using namespace std;  

#define PB push_back  
#define MP make_pair  
#define SZ(v) ((int)(v).size())  
#define FOR(i,a,b) for(int i=(a);i<(b);++i)  
#define REP(i,n) FOR(i,0,n)  
#define FORE(i,a,b) for(int i=(a);i<=(b);++i)  
#define REPE(i,n) FORE(i,0,n)  
#define FORSZ(i,a,v) FOR(i,a,SZ(v))  
#define REPSZ(i,v) REP(i,SZ(v))  
typedef long long ll;
typedef unsigned long long ull;
ll gcd(ll a,ll b) { return b==0?a:gcd(b,a%b); }

const int MAXN=100000;
const int MAXS=2*MAXN-1;

int n;
char s[MAXS+3];

int ans[2*MAXN],nans;

void remove(vector<int> &lst,int val) { int idx=0; while(idx<SZ(lst)&&lst[idx]!=val) ++idx; assert(idx<SZ(lst)); lst.erase(lst.begin()+idx); }

vector<int> none,both,lft,rgt;
bool solve() {
	//printf("%s\n",s);
	REP(i,2*n) ans[i]=-1; nans=0; none.clear(),both.clear(),lft.clear(),rgt.clear();
	REP(i,2*n) if(s[i]=='0'&&s[i+1]=='0') none.PB(i); else if(s[i]=='0') rgt.PB(i); else if(s[i+1]=='0') lft.PB(i); else both.PB(i);
	if(SZ(lft)!=SZ(rgt)||SZ(none)%2!=0||SZ(both)%2!=0) return false;
	if(SZ(both)%4==2) {
		int at=0;
		while(at<=2*n&&s[at]=='1') ++at; if(at>2*n) return false;
		while(true) {
			while(at+1<=2*n&&s[at+1]=='0') ++at; if(at+1>2*n) return false;
			if(at+2<=2*n&&s[at+2]=='1') break; else at+=2;
		}
		int to=at+1; while(to<=2*n&&s[to]=='1') ++to; if(to>2*n) return false;
		int idx=0; while(idx<SZ(both)&&at+1<=both[idx]&&both[idx]<=to-2) ++idx; if(idx>=SZ(both)) return false;
		if(both[idx]<=at) while(idx+1<SZ(both)&&both[idx+1]+1<=at) ++idx;
		//printf("at=%d to=%d both[idx]=%d\n",at,to,both[idx]);
		int a=at,b=to-1,c=a+1,d=both[idx]; ans[a]=ans[b]=++nans,ans[c]=ans[d]=++nans; remove(rgt,a); remove(lft,b); remove(both,c); remove(both,d);
	}
	REPSZ(i,lft) { int a=lft[i],b=rgt[i]; ans[a]=ans[b]=++nans; }
	for(int i=0;i<SZ(none);i+=2) { int a=none[i],b=none[i+1]; ans[a]=ans[b]=++nans; }
	for(int i=0;i<SZ(both);i+=4) { int a=both[i],b=both[i+1],c=both[i+2],d=both[i+3]; ans[a]=ans[c]=++nans; ans[b]=ans[d]=++nans; }
	return true;
}

void run() {
	scanf("%d%s",&n,s+1); s[0]='1'; s[2*n]='1'; s[2*n+1]='\0';
	if(!solve()) { printf("No\n"); return; }
	printf("Yes\n");
	REP(i,2*n) { if(i!=0) printf(" "); printf("%d",ans[i]); } puts("");
}

char t[MAXS+3];
int sum[MAXN+1];
void testans() {
	FORE(i,1,n) sum[i]=0; REP(i,2*n) sum[ans[i]]+=i;
	REP(i,2*n) t[i]='0'; t[2*n+1]='\0';
	int at=0;
	while(true) {
		t[at]='1';
		if(at==2*n) break; else at=sum[ans[at]]-at+1;
	}
	if(strcmp(s,t)!=0) {
		printf("%s vs %s\n",s,t);
		printf("ans:"); REP(i,2*n) printf(" %d",ans[i]); puts("");
	}
}

void stress() {
	for(n=1;n<=10;++n) {
		REP(mask,1<<(2*n-1)) {
			s[0]='1'; REP(i,2*n-1) s[i+1]='0'+((mask>>i)&1); s[2*n]='1'; s[2*n+1]='\0';
			if(solve()) {
				testans();
			} else if(SZ(lft)==SZ(rgt)&&SZ(none)%2==0&&SZ(both)%2==0) {
				//printf("not %s\n",s);
			}
		}
	}
}

int main() {
	run();
	//stress();
	return 0;
}