#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string x;
  cin >> x;
  int oor = 0, op = 0;
  map<int, char> mp;
  for (int i = 0; i < x.length(); i++) {
    if (x[i] == '(') {
      if (oor > op) {
        mp[i] = 'b';
        op++;
      } else {
        mp[i] = 'r';
        oor++;
      }
    } else {
      if (oor > op) {
        mp[i] = 'r';
        oor--;
      } else {
        mp[i] = 'b';
        op--;
      }
    }
  }
  for (int i = 0; i < x.length(); i++) {
    if (mp[i] == 'r')
      cout << 0;
    else
      cout << 1;
  }
}
