#include <bits/stdc++.h>
using namespace std;
const int N = 2e5 + 10, MOD = 7 + 1e9;
char s[N];
int ans[N];
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int n;
  cin >> n;
  cin >> s;
  char st[N];
  int tp = 0;
  for (int i = 0; i < n; i++) {
    if (tp == 0)
      st[tp++] = s[i], ans[i] = tp % 2;
    else {
      if (s[i] == '(') {
        st[tp++] = s[i];
        ans[i] = tp % 2;
      } else {
        ans[i] = tp % 2;
        tp--;
      }
    }
  }
  for (int i = 0; i < n; i++) cout << ans[i];
  return 0;
}
