#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
using namespace std;
const double EPS = 1e-6;
const int N = 100000 + 26;
int n;
string s;
void solve() {
  cin >> n >> s;
  string t(n, '0');
  int b = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == ')') b--;
    t[i] = char('0' + (b & 1));
    if (s[i] == '(') b++;
  }
  cout << t << '\n';
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
