#include <bits/stdc++.h>
using namespace std;
long long n, T, temp, arr[200005], maxx = -1e9 - 9, minn = 1e9 + 10;
vector<long long> myvec;
set<long long> myset;
pair<long long, long long> mypair;
map<string, long long> mymap;
string s;
bool flat;
int main() {
  cin >> n;
  cin >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == '(') {
      arr[i] = ++temp;
    } else {
      arr[i] = temp--;
    }
    maxx = max(maxx, temp);
  }
  for (int i = 0; i < n; i++) {
    cout << (arr[i] > (maxx >> 1));
  }
}
