#include <bits/stdc++.h>
using namespace std;
const long long inf = LONG_MAX;
const long long arr = 1000000;
long long swap(long long c) {
  if (c == 0) return 1;
  return 0;
}
int main(void) {
  long long n;
  cin >> n;
  string second;
  cin >> second;
  vector<pair<char, long long> > st;
  vector<long long> ans;
  long long c = 1;
  for (int i = 0; i < n; i++) {
    if (second[i] == '(') {
      c = swap(c);
      ans.push_back(c);
    } else {
      ans.push_back(c);
      c = swap(c);
    }
  }
  for (int i = 0; i < ans.size(); i++) cout << ans[i];
  cout << '\n';
  return 0;
}
