#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int depth[n];
  int match_len = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == '(') {
      match_len++;
    }
    if (match_len % 2 == 0) {
      depth[i] = 0;
    } else {
      depth[i] = 1;
    }
    if (s[i] == ')') {
      match_len--;
    }
  }
  for (auto x : depth) {
    cout << x;
  }
  cout << "\n";
}
