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<stdio.h>
#include<vector>
#include<algorithm>
#include<string>
#include<iostream>
using namespace std;
int ans[202020];
void no()
{
	printf("No\n");
	exit(0);
}
int zzz[202020];
int ai[202020];
int dd[202020];
void check(int num, string s)
{
	fill(zzz, zzz + num * 2, -1);
	for (int i = 0; i < num * 2; i++)
	{
		if (zzz[ans[i]] == -1)zzz[ans[i]] = i;
		else ai[i] = zzz[ans[i]], ai[zzz[ans[i]]] = i;
	}
	int now = 0;
	for (;;)
	{
		if (now == num * 2)break;
		now = ai[now];
		dd[now] = 1;
		now++;
	}
	for (int i = 1; i < s.size() - 1; i++)if ((s[i] == '0') != (dd[i - 1] == 0))abort();
}
typedef pair<int, int>pii;
int main()
{
	int num;
	scanf("%d", &num);
	string s;
	cin >> s;
	s = "1" + s + "1";
	vector<int>v;
	for (int i = 0; i < num * 2; i++)if (s[i] == '1'&&s[i + 1] == '1')v.push_back(i);
	if (v.size() % 2 == 1)no();
	if (v.size() % 4 == 0)
	{
		int pt = 0;
		for (int i = 0; i < v.size() / 2; i++)ans[v[i]] = ans[v[i + v.size() / 2]] = pt++;
		vector<int>a, b, c;
		for (int i = 0; i < num * 2; i++)
		{
			if (s[i] == '1'&&s[i + 1] == '0')a.push_back(i);
			if (s[i] == '0'&&s[i + 1] == '1')b.push_back(i);
			if (s[i] == '0'&&s[i + 1] == '0')c.push_back(i);
		}
		for (int i = 0; i < a.size(); i++)ans[a[i]] = ans[b[i]] = pt++;
		for (int i = 0; i < c.size() / 2; i++)ans[c[i * 2]] = ans[c[i * 2 + 1]] = pt++;
		check(num, s);
		printf("Yes\n");
		for (int i = 0; i < num * 2; i++)printf("%d ", ans[i] + 1);
		printf("\n");
	}
	else
	{
		int pt = 0;
		for (int i = 0; i < v.size() / 2; i++)ans[v[i]] = ans[v[i + v.size() / 2]] = pt++;
		vector<int>a, b, c;
		for (int i = 0; i < num * 2; i++)
		{
			if (s[i] == '1'&&s[i + 1] == '0')a.push_back(i);
			if (s[i] == '0'&&s[i + 1] == '1')b.push_back(i);
			if (s[i] == '0'&&s[i + 1] == '0')c.push_back(i);
		}
		for (int i = 0; i < a.size(); i++)ans[a[i]] = ans[b[i]] = pt++;
		for (int i = 0; i < c.size() / 2; i++)ans[c[i * 2]] = ans[c[i * 2 + 1]] = pt++;



		int now = 0, mode = -1;
		int lb = s.size() - 1, ub = s.size() - 1;
		for (int i = 0; i < s.size(); i++)
		{
			if (s[i] == '1')now++;
			else
			{
				if (mode == -1)mode = 0;
				else if (now % 2 == 0 && now > 0)
				{
					lb = i - now, ub = i;
					break;
				}
				now = 0;
			}
		}
		if (ub == s.size() - 1)
		{
			now = 0, mode = -1;
			vector<pii>zz;
			for (int i = 0; i <= num * 4; i++)
			{
				if (s[i % (num * 2)] == '1')now++;
				else
				{
					if (mode == -1)mode = 0;
					else if (now > 2)
					{
						zz.push_back(make_pair(i - now, i));
					}
					now = 0;
				}
			}
			if (zz.size() <= 2)no();
			swap(ans[zz[0].second - 2], ans[zz[1].first%(num*2)]);
			lb = zz[1].first, ub = zz[1].second % (num * 2);
		}
		int t;
		for (int i = 0; i < num * 2; i++)if (ub - 1 != i&&ans[ub - 1] == ans[i])t = i;
		swap(ans[lb - 1], ans[t]);
		check(num, s);
		printf("Yes\n");
		for (int i = 0; i < num * 2; i++)printf("%d ", ans[i] + 1);
		printf("\n");
	}
}