#include <bits/stdc++.h>
using namespace std;
int main() {
  int64_t l = 0, r, n, t = 0, k = 0, c = 0, tc;
  string s;
  cin >> n >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == '(') {
      l++;
    }
  }
  for (int i = 0; i < n; i++) {
    if (s[i] == '(') {
      if (c == 0) {
        cout << "0";
        c = 1;
      } else {
        c = 0;
        cout << "1";
      }
    } else {
      if (t == 0) {
        cout << "0";
        t = 1;
      } else {
        t = 0;
        cout << "1";
      }
    }
  }
}
