#include <bits/stdc++.h>
using namespace std;
const int MOD = 998244353;
int main() {
  int n;
  string s, res;
  cin >> n >> s;
  int rc(0), bc(0), dc(0);
  for (int i = 0; i < n; i++) {
    if (s[i] == '(') {
      dc++;
      if (rc <= bc) {
        rc++;
        res.push_back('0');
      } else {
        bc++;
        res.push_back('1');
      }
    } else {
      dc--;
      if (rc >= bc) {
        rc--;
        res.push_back('0');
      } else {
        bc--;
        res.push_back('1');
      }
    }
  }
  cout << res;
}
