#include <bits/stdc++.h>
using namespace std;
const int N = 200005;
char s[N];
int main() {
  int n;
  scanf("%d\n%s", &n, s);
  int x = 0, y = 0, mx = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == '(') {
      if (x < y) {
        x++;
        s[i] = '0';
      } else {
        y++;
        s[i] = '1';
      }
    } else {
      if (x > y) {
        x--;
        s[i] = '0';
      } else {
        y--;
        s[i] = '1';
      }
    }
    mx = max(mx, x);
    mx = max(mx, y);
  }
  printf("%s", s);
  return 0;
}
