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 JAVA):

Solution:
import java.io.*;
import java.util.*;

public class Main {

	int[] solve(String s) {
		int z = s.indexOf('0');
		int n = s.length() / 2;
		int[] ans = new int[2 * n];
		Arrays.fill(ans, -1);
		if (z == -1) {
			if (n % 2 == 0) {
				for (int i = 0; i < n; i += 2) {
					ans[2 * i] = ans[2 * i + 2] = i;
					ans[2 * i + 1] = ans[2 * i + 3] = i + 1;
				}
				return ans;
			} else {
				return null;
			}
		}

		int[] from = new int[2 * n];
		int[] lens = new int[2 * n];
		int sz = 0;

		int len = 0;
		int start = -1;
		for (int j = (z + 1) % (2 * n);; j = (j + 1) % (2 * n)) {
			if (s.charAt(j) == '0') {
				if (len > 0) {
					from[sz] = start;
					lens[sz] = len;
					sz++;
					len = 0;
				}
			} else {
				if (len == 0) {
					start = j;
				}
				len++;
			}
			if (j == z) {
				break;
			}
		}

		int tot = 0;
		int k0 = -1, k1 = -1;
		for (int i = 0; i < sz; i++) {
			tot += lens[i] - 1;
			if (lens[i] > 1) {
				if (k0 == -1) {
					k0 = i;
				} else if (k1 == -1) {
					k1 = i;
				}
			}
		}

		if (tot % 2 != 0) {
			return null;
		}

		ArrayList<Integer> mids = new ArrayList<>();

		int ptr = 0;
		if (tot % 4 == 0) {
			mids = new ArrayList<>();
			for (int i = 0; i < sz; i++) {
				int x = Math.floorMod(from[i] + lens[i] - 1, 2 * n);
				int y = Math.floorMod(from[(i + 1) % sz] - 1, 2 * n);
				ans[x] = ans[y] = ptr++;

				for (int j = 0; j < lens[i] - 1; j++) {
					mids.add((from[i] + j) % (2 * n));
				}
			}

		} else {

			if (k1 == -1) {
				return null;
			}

			ans[from[k0]] = ans[from[k1]] = ptr++;

			for (int q : new int[]{k1, k0}) {
				for (int j = 1; j < lens[q] - 1; j++) {
					int idx = (from[q] + j) % (2 * n);
					if (ans[idx] == -1) {
						mids.add(idx);
					}
				}
			}
			
			for (int i = 0; i < sz; i++) {
				if (i == k0 || i == k1) {
					continue;
				}
				for (int j = 0; j < lens[i] - 1; j++) {
					int idx = (from[i] + j) % (2 * n);
					if (ans[idx] == -1) {
						mids.add(idx);
					}
				}
			}

			ArrayList<Integer> ends = new ArrayList<>();
			ends.add(Math.floorMod(from[k0] - 1, 2 * n));
			ends.add(Math.floorMod(from[k1] + lens[k1] - 1, 2 * n));
			ends.add(Math.floorMod(from[k1] - 1, 2 * n));
			ends.add(Math.floorMod(from[k0] + lens[k0] - 1, 2 * n));
			for (int i = 0; i < sz; i++) {
				if (i != k0 && i != k1) {
					ends.add(Math.floorMod(from[i] - 1, 2 * n));
					ends.add(Math.floorMod(from[i] + lens[i] - 1, 2 * n));
				}
			}

			for (int i = 1; i < ends.size(); i += 2) {
				int x = ends.get(i);
				int y = ends.get((i + 1) % ends.size());
				ans[x] = ans[y] = ptr++;
			}

		}

		for (int i = 0; i < mids.size(); i += 4) {
			ans[mids.get(i)] = ans[mids.get(i + 2)] = ptr++;
			ans[mids.get(i + 1)] = ans[mids.get(i + 3)] = ptr++;
		}

		int left = 2;
		for (int i = 0; i < 2 * n; i++) {
			if (ans[i] == -1) {
				ans[i] = ptr;
				left--;
				if (left == 0) {
					left = 2;
					ptr++;
				}
			}
		}

		return ans;

	}

	void submit() {
		int n = nextInt();
		String s = "1" + nextToken();

		int[] ans = solve(s);
		if (ans == null) {
			out.println("No");
		} else {
			out.println("Yes");
			for (int x : ans) {
				out.print((x + 1) + " ");
			}
			out.println();
		}

	}

	void preCalc() {

	}

	static final int C = 20;

	void stress() {
		for (int tst = 0;; tst++) {
			int n = rand(1, C);
			StringBuilder sb = new StringBuilder("1");
			for (int i = 0; i < 2 * n - 1; i++) {
				sb.append(rng.nextBoolean() ? '0' : '1');
			}
			System.err.println(sb);
			int[] ans = solve(sb.toString());

			if (ans == null) {
				continue;
			}

			if (ans.length != 2 * n) {
				throw new AssertionError();
			}

			int[] cnt = new int[n];
			for (int x : ans) {
				if (x < 0 || x >= n) {
					throw new AssertionError();
				}
				cnt[x]++;
			}

			for (int x : cnt) {
				if (x != 2) {
					throw new AssertionError();
				}
			}

			if (!emulate(ans).equals(sb.toString())) {
				throw new AssertionError();
			}
		}
	}

	String emulate(int[] ans) {
		int n = ans.length / 2;
		int[] p = new int[2 * n];
		for (int i = 0; i < 2 * n; i++) {
			for (int j = 0; j < 2 * n; j++) {
				if (i != j && ans[i] == ans[j]) {
					p[i] = j;
				}
			}
		}

		char[] buf = new char[2 * n];
		Arrays.fill(buf, '0');
		buf[0] = '1';

		for (int i = p[0]; i != 2 * n - 1;) {
			buf[i + 1] = '1';
			i = p[i + 1];
		}

		return new String(buf);
	}

	void test() {
		System.err.println(Arrays.toString(solve("111011101110")));
		System.err.println(emulate(solve("111011101110")));
	}

	Main() throws IOException {
		br = new BufferedReader(new InputStreamReader(System.in));
		out = new PrintWriter(System.out);
		preCalc();
		 submit();
//		 stress();
//		test();
		out.close();
	}

	static final Random rng = new Random();

	static int rand(int l, int r) {
		return l + rng.nextInt(r - l + 1);
	}

	public static void main(String[] args) throws IOException {
		new Main();
	}

	BufferedReader br;
	PrintWriter out;
	StringTokenizer st;

	String nextToken() {
		while (st == null || !st.hasMoreTokens()) {
			try {
				st = new StringTokenizer(br.readLine());
			} catch (IOException e) {
				throw new RuntimeException(e);
			}
		}
		return st.nextToken();
	}

	String nextString() {
		try {
			return br.readLine();
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
	}

	int nextInt() {
		return Integer.parseInt(nextToken());
	}

	long nextLong() {
		return Long.parseLong(nextToken());
	}

	double nextDouble() {
		return Double.parseDouble(nextToken());
	}
}