#include <bits/stdc++.h>
using namespace std;
char getc() {
  char c = getchar();
  while ((c < 'A' || c > 'Z') && (c < 'a' || c > 'z') && (c < '0' || c > '9'))
    c = getchar();
  return c;
}
int gcd(int n, int m) { return m == 0 ? n : gcd(m, n % m); }
int read() {
  int x = 0, f = 1;
  char c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9')
    x = (x << 1) + (x << 3) + (c ^ 48), c = getchar();
  return x * f;
}
int n, x, y, a[200010];
char s[200010];
bool flag[200010];
signed main() {
  n = read();
  scanf("%s", s + 1);
  for (int i = 1; i <= n; i++)
    if (s[i] == '(')
      a[i] = 1;
    else
      a[i] = -1;
  for (int i = 1; i <= n; i++)
    if (a[i] == 1) {
      if (x < y)
        x++, flag[i] = 0;
      else
        y++, flag[i] = 1;
    } else {
      if (x > y)
        x--, flag[i] = 0;
      else
        y--, flag[i] = 1;
    }
  for (int i = 1; i <= n; i++) printf("%d", flag[i]);
  return 0;
}
