#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int arr[n], prev = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == '(') {
      arr[i] = prev ^ 1;
      prev = arr[i];
    }
  }
  prev = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == ')') {
      arr[i] = prev ^ 1;
      prev = arr[i];
    }
  }
  for (int i = 0; i < n; i++) cout << arr[i];
  cout << endl;
  return 0;
}
