#include <bits/stdc++.h>
using namespace std;
string s;
int n, x, y;
int main() {
  cin >> n >> s;
  for (int i = 0; i < n; i++) {
    if (s[i] == '(') {
      cout << x;
      x ^= 1;
    } else {
      cout << y;
      y ^= 1;
    }
  }
  return 0;
}
