#include <bits/stdc++.h>
using namespace std;
template <typename T>
void ri(T& x);
const int MAXN = 2e5 + 3;
int len;
char st[MAXN];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cin >> len >> st;
  int a = 0, b = 0;
  for (int i = 0; i < len; ++i) {
    if (st[i] == '(') {
      if (a > b) {
        cout << '1';
        ++b;
      } else {
        cout << '0';
        ++a;
      }
    } else {
      if (a > b) {
        cout << '0';
        --a;
      } else {
        cout << '1';
        --b;
      }
    }
  }
  return 0;
}
template <typename T>
void ri(T& x) {
  char c;
  bool minus = false;
  while ((c = getchar()) < '0' || '9' < c)
    if (c == '-') minus = true;
  x = c - '0';
  while ('0' <= (c = getchar()) && c <= '9') x = 10 * x - '0' + c;
  if (minus) x = -x;
}
