#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  int n;
  string s;
  cin >> n >> s;
  vector<int> ans(n);
  for (int i = 0, p = 0; i < n; i++) ans[i] = s[i] == '(' ? ans[i] = p++ : --p;
  for (int i = 0; i < n; i++) cout << (ans[i] & 1);
  cout << endl;
  return 0;
}
