#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  int n;
  cin >> n;
  string s;
  cin >> s;
  int balance = 0;
  for (int i = 0; i < n; ++i) {
    if (s[i] == ')') balance--;
    char c = s[i];
    if (balance % 2 != 0) {
      s[i] = '1';
    } else
      s[i] = '0';
    if (c == '(') balance++;
  }
  cout << s;
  return 0;
}
