#include <bits/stdc++.h>
const int Maxn = 2e5 + 7;
int n;
char ch[Maxn];
int vis[Maxn];
int main() {
  scanf("%d", &n);
  scanf("%s", ch);
  int dep = 0;
  for (int i = 0; i < n; i++) {
    if (ch[i] == '(') {
      dep++;
      vis[i] = dep;
    }
    if (ch[i] == ')') {
      vis[i] = dep;
      dep--;
    }
  }
  for (int i = 0; i < n; i++) {
    if (vis[i] % 2 == 1)
      printf("%d", 1);
    else
      printf("%d", 0);
  }
  printf("\n");
  return 0;
}
