#include <bits/stdc++.h>
using namespace std;
char S[200010];
int col[200010];
void go(int n) {
  memset(col, 0, sizeof(col));
  int a = 0, ma = 0;
  for (int i = 0; i < n; i++) {
    a += S[i] == '(' ? 1 : -1;
    ma = max(ma, a);
  }
  int x = (ma + 1) / 2;
  for (int i = 0; i < n; i++) {
    a += S[i] == '(' ? 1 : -1;
    col[i] = (S[i] == '(' && a > x) || (S[i] == ')' && a + 1 > x) ? 1 : 0;
  }
}
int main() {
  int n;
  scanf("%d ", &n);
  scanf("%s", S);
  go(n);
  for (int i = 0; i < n; i++) printf("%d", col[i]);
  printf("\n");
  return 0;
}
