#include <bits/stdc++.h>
using namespace std;
long long powmod(long long base, long long exp, long long MOD) {
  long long res = 1;
  while (exp > 0) {
    if (exp % 2 == 1) res = (res * base) % MOD;
    base = (base * base) % MOD;
    exp /= 2;
  }
  return (res % MOD);
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long n;
  string s;
  cin >> n >> s;
  long long cnt = 0;
  string temp = "";
  long long lvl = 0;
  for (long long i = 0; i < n; i++) {
    if (s[i] == '(') {
      lvl++;
      cnt = max(lvl, cnt);
    } else {
      lvl--;
    }
  }
  long long t = cnt / 2;
  lvl = 0;
  for (long long i = 0; i < n; i++) {
    if (s[i] == '(') {
      lvl++;
      if (lvl > t)
        temp += "1";
      else
        temp += "0";
    } else {
      if (lvl > t)
        temp += "1";
      else
        temp += "0";
      lvl--;
    }
  }
  cout << temp;
  return 0;
}
