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<bits/stdc++.h>
using namespace std;

typedef pair<int, int> pii;

const int MN = 100010;

int N;
string S, T;
int ans[MN << 1];
vector<vector<int> > door;
int dcnt;

void print() {
    printf("Yes\n");

    for(int i = 0; i < 2 * N; i++) {
        printf("%d ", ans[i] + 1);
    }
}
void solve(int t) {
    for(int i = 0; i < door[t].size() / 4; i++) {
        ans[ door[t][4 * i] ] = dcnt;
        ans[ door[t][4 * i + 1] ] = dcnt + 1;
        ans[ door[t][4 * i + 2] ] = dcnt;
        ans[ door[t][4 * i + 3] ] = dcnt + 1;
        dcnt += 2;
    }
    int rem = 2;
    for(int i = 0; i < 2 * N; i++) if(ans[i] == -1) {
        ans[i] = dcnt;
        rem--;
        if(!rem) {
            dcnt++;
            rem = 2;
        }
    }
    print();
}

int main() {
    cin >> N >> S;
    S += '1';

    memset(ans, -1, sizeof(ans));

    int p = -1;
    for(int i = 0; i < S.size(); i++) {
        if(S[i] == '0') {
            p = i;
            break;
        }
    }

    if(p == -1) {
        if(N % 2) printf("No");
        else {
            printf("Yes\n");
            for(int i = 0; i < N / 2; i++) {
                for(int j = 0; j < 2; j++) {
                    printf("%d %d ", 2 * i + 1, 2 * i + 2);
                }
            }
        }
        return 0;
    }

    for(int i = 1; i < 2 * N; i++) {
        int cur = (p + i) % (2 * N);
        int pre = (p + i - 1) % (2 * N);

        if(S[pre] == '0' && S[cur] == '1') {
            door.push_back(vector<int>());
        }
        if(S[cur] == '1' || S[pre] == '1') door.back().push_back(cur);
    }
    if(S[ (p + 2 * N - 1) % (2 * N) ] == '1') door.back().push_back(p);

    /*
    for(int i = 0; i < door.size(); i++) {
        for(int j = 0; j < door[i].size(); j++) {
            cout << door[i][j] << ' ';
        }
        cout << endl;
    }
    //*/

    int gcnt = 0;
    for(int i = 0; i < door.size(); i++) {
        gcnt += (int)door[i].size() - 2;
    }
    if(gcnt % 2) {
        printf("No");
        return 0;
    }
    if(gcnt % 4 == 0) {
        for(int i = 1; i < door.size(); i++) {
            ans[ door[0].back() ] = dcnt;
            ans[ door[i][0] ] = dcnt;
            dcnt++;

            door[0].pop_back();
            for(int j = 1; j < door[i].size(); j++) door[0].push_back(door[i][j]);
        }

        ans[ door[0].back() ] = dcnt;
        ans[ door[0][0] ] = dcnt;
        dcnt++;

        door[0].pop_back();
        door[0].erase(door[0].begin());

        solve(0);
        return 0;
    }

    vector<int> X;
    for(int i = 0; i < door.size(); i++) {
        if(X.size() == 2) break;
        if(door[i].size() > 2) {
            X.push_back(i);
        }
    }
    if(X.size() < 2) {
        printf("No");
        return 0;
    }


    for(int i = 0; i < door.size(); i++) {
        if(i == X[0] || i == X[1]) continue;

        ans[ door[ X[0] ].back() ] = dcnt;
        ans[ door[i][0] ] = dcnt;
        dcnt++;

        door[ X[0] ].pop_back();
        for(int j = 1; j < door[i].size(); j++) {
            door[ X[0] ].push_back(door[i][j]);
        }
    }
    for(int i = 0; i < 2; i++) {
        ans[ door[ X[i] ].back() ] = dcnt;
        ans[ door[ X[i] ][0] ] = dcnt;
        dcnt++;

        door[ X[i] ].pop_back();
        door[ X[i] ].erase(door[ X[i] ].begin());
    }

    ans[ door[ X[0] ].back() ] = dcnt;
    ans[ door[ X[1] ][0] ] = dcnt;
    dcnt++;

    door[ X[0] ].pop_back();
    door[ X[1] ].erase(door[ X[1] ].begin());

    for(int i = 0; i < door[ X[1] ].size(); i++) {
        door[ X[0] ].push_back(door[ X[1] ][i]);
    }

    solve(X[0]);
}