#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long n;
  string s;
  cin >> n >> s;
  long long a = 0, b = 0, x = 0;
  for (long long int i = 0; i < n; i++) {
    if (s[i] == '(') {
      if (a > b) {
        b++;
        x = 1;
      } else {
        a++;
        x = 0;
      }
      cout << x;
    } else {
      if (a > b) {
        x = 0;
        a--;
      } else {
        x = 1;
        b--;
      }
      cout << x;
    }
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long TESTS = 1;
  while (TESTS--) {
    solve();
  }
  return 0;
}
