시간 제한 메모리 제한 제출 정답 맞은 사람 정답 비율
2 초 256 MB 1 1 1 100.000%

문제

There is a bridge that connects 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'.

Determine if there exists an arrangement of doors that is consistent with the record. If it exists, construct one such arrangement.

입력

Input is given in the following format:

$N$

$s$

출력

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.

제한

$N$ is integer, ($1 \leq N \leq 10^5$), $s$ consists of '0' and '1', $|s| = 2 N - 1$.

예제 입력 1

2
010

예제 출력 1

Yes
1 1 2 2

예제 입력 2

2
001

예제 출력 2

No

예제 입력 3

3
10110

예제 출력 3

Yes
1 3 2 1 2 3

예제 입력 4

3
10101

예제 출력 4

No

예제 입력 5

6
00111011100

예제 출력 5

Yes
1 6 1 2 3 4 4 2 3 5 6 5