#include <bits/stdc++.h>
using namespace std;
const int MAX = 2e5 + 100;
bool pos[MAX];
int main() {
  int n;
  cin >> n;
  string str;
  cin >> str;
  int cnt1 = 0, cnt2 = 0;
  for (int i = 0; i < str.length(); i++) {
    if (str[i] == '(') {
      pos[i] = cnt1;
      cnt1 = !cnt1;
    } else {
      pos[i] = cnt2;
      cnt2 = !cnt2;
    }
  }
  for (int i = 0; i < n; i++) cout << pos[i];
  cout << endl;
  return 0;
}
