#include <bits/stdc++.h>
using namespace std;
const long long max_n = 1e6 + 20;
long long n, m, k, sum, ans, cnt;
bool mark[max_n], mr[max_n];
long long a[max_n], b[max_n];
vector<long long> ra[max_n], adj[max_n], an[max_n];
int32_t main() {
  string s;
  cin >> n >> s;
  bool c = 0;
  for (long long i = 0; i < n; i++)
    if (s[i] == '(') mark[i] = (c = !c);
  c = 0;
  for (long long i = 0; i < n; i++)
    if (s[i] == ')') mark[i] = (c = !c);
  for (long long i = 0; i < n; i++) cout << mark[i];
  return 0;
}
