import std.stdio, std.array, std.string, std.conv, std.algorithm;
import std.typecons, std.range, std.random, std.math, std.container;
import std.numeric, std.bigint, core.bitop, core.stdc.string;

void main() {
    auto N = readln.chomp.to!int;
    auto S = readln.chomp;
    auto ans = new int[](N);
    int tmp = 0;
    foreach (i; 0..N) {
        if (S[i] == '(') {
            ans[i] = tmp % 2;
            tmp += 1;
        } else {
            tmp -= 1;
            ans[i] = tmp % 2;
        }
    }
    ans.map!(to!string).join("").writeln;
}
