#include <bits/stdc++.h>
using namespace std;
struct re {
  int x, y;
};
const int inf = 1e9 + 10;
const int N = 1e3 + 10;
int n, nested;
string s;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> n >> s;
  int tg = 0;
  for (auto i : s) {
    if (i == '(')
      ++tg;
    else
      --tg;
    nested = max(nested, tg);
  }
  tg = 0;
  for (auto i : s)
    if (i == '(') {
      ++tg;
      if (tg <= nested / 2)
        cout << 0;
      else
        cout << 1;
    } else {
      --tg;
      if (tg < nested / 2)
        cout << 0;
      else
        cout << 1;
    }
  return 0;
}
