#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 5;
char ss[maxn];
int a[maxn];
int main() {
  int n, maxx = 0, x = 0;
  scanf("%d", &n);
  scanf("%s", ss + 1);
  for (int i = 1; i <= n; i++) {
    if (ss[i] == '(') {
      a[i] = ++x;
    } else
      a[i] = x--;
  }
  for (int i = 1; i <= n; i++) {
    maxx = max(maxx, a[i]);
  }
  maxx = maxx / 2;
  for (int i = 1; i <= n; i++) {
    if (a[i] > maxx)
      printf("1");
    else
      printf("0");
  }
}
