{"raw_statement":[{"iden":"problem statement","content":"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$.\nSnuke 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:\n\n*   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$.\n\nIt can be shown that he will eventually get to the right bank.\nFor 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`.\n\n![image](https://img.atcoder.jp/cookie/970b981380ffad7745008433034c0885.png)Figure: A possible arrangement of doors for Sample Input 3\n\nDetermine if there exists an arrangement of doors that is consistent with the record. If it exists, construct one such arrangement."},{"iden":"constraints","content":"*   $1 \\leq N \\leq 10^5$\n*   $|s| = 2 N - 1$\n*   $s$ consists of `0` and `1`."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$\n$s$"},{"iden":"sample input 1","content":"2\n010"},{"iden":"sample output 1","content":"Yes\n1 1 2 2"},{"iden":"sample input 2","content":"2\n001"},{"iden":"sample output 2","content":"No"},{"iden":"sample input 3","content":"3\n10110"},{"iden":"sample output 3","content":"Yes\n1 3 2 1 2 3\n\nThe figure below is identical to the one in the statement.\n![image](https://img.atcoder.jp/cookie/970b981380ffad7745008433034c0885.png)"},{"iden":"sample input 4","content":"3\n10101"},{"iden":"sample output 4","content":"No"},{"iden":"sample input 5","content":"6\n00111011100"},{"iden":"sample output 5","content":"Yes\n1 6 1 2 3 4 4 2 3 5 6 5"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}