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