#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  scanf("%d", &n);
  string s;
  cin >> s;
  string ans = "0";
  int curr = 0;
  for (int i = 1; i < n; i++) {
    if (s[i] == '(') curr = curr ^ 1;
    ans += (char)(curr + '0');
    if (s[i] == ')') curr = curr ^ 1;
  }
  cout << ans << endl;
  return 0;
}
