#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,tune=native")
#pragma GCC optimize("unroll-loops")
using namespace std;
const long long INF = 1e9;
long long rnd() { return (rand() << 16) + rand(); }
const long long MOD = 1e9;
vector<vector<long long>> g;
vector<long long> used;
long long n, m;
long long dfs(long long v, long long color) {
  used[v] = color;
  long long res = bool(v < n);
  for (auto to : g[v]) {
    if (used[to] != 0) continue;
    res += dfs(to, color);
  }
  return res;
}
int source() {
  long long n;
  cin >> n;
  string s;
  cin >> s;
  vector<long long> d(n);
  long long dd = 0;
  for (int i = 0; i < n; ++i) {
    if (s[i] == '(') {
      d[i] = dd++;
    } else {
      d[i] = --dd;
    }
  }
  for (int i = 0; i < n; ++i) {
    cout << d[i] % 2;
  }
  return 0;
}
int main() {
  srand(17);
  ios::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  source();
  return 0;
}
