#include <bits/stdc++.h>
const int maxn = 2e5 + 7;
const double inf = 0x3f3f3f3f;
const long long mod = 1e9 + 7;
using namespace std;
int ans[maxn], dep = 0;
int main() {
  int n, len, tem = 0;
  char s[maxn];
  scanf("%d", &n);
  getchar();
  scanf("%s", s);
  len = strlen(s);
  for (int i = 0; i < len; i++) {
    if (s[i] == '(') {
      tem++;
      dep = max(dep, tem);
    } else
      tem--;
  }
  tem = 0;
  for (int i = 0; i < len; i++) {
    if (s[i] == '(') {
      tem++;
      if (tem <= dep / 2)
        ans[i] = 1;
      else
        ans[i] = 0;
    } else {
      if (tem <= dep / 2)
        ans[i] = 1;
      else
        ans[i] = 0;
      tem--;
    }
  }
  for (int i = 0; i < len; i++) printf("%d", ans[i]);
  printf("\n");
  return 0;
}
