#include <bits/stdc++.h>
using namespace std;
const int INF = 0x3f3f3f3f;
const int N = 2e5 + 7;
const long long MOD = 998244353;
int n, ans[N];
char s[N];
int main() {
  while (cin >> n) {
    for (int i = 0; i < N; ++i) ans[i] = 0;
    scanf("%s", s);
    int al = 0, bl = 0;
    for (int i = 0; s[i]; ++i) {
      if (s[i] == '(') {
        if (al <= bl) {
          ans[i] = 0;
          ++al;
        } else {
          ans[i] = 1;
          ++bl;
        }
      } else {
        if (al > 0) {
          ans[i] = 0;
          --al;
        } else {
          ans[i] = 1;
          --bl;
        }
      }
    }
    for (int i = 0; i < n; ++i) {
      printf("%d", ans[i]);
    }
    puts("");
  }
  return 0;
}
