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