#include <bits/stdc++.h>
using namespace std;
const int maxn = 2e5 + 10;
const long long inf = 0x3f3f3f3f3f3f3f3f;
const int INF = 0x3f3f3f3f;
string str, ans;
int n, st[maxn], top = -1;
int main() {
  ios::sync_with_stdio(0);
  cin >> n >> str;
  for (int i = 0; i < str.size(); ++i) {
    if (str[i] == '(') {
      if (top >= 0 && st[top] == 1) {
        ans += "0";
        st[++top] = 0;
      } else {
        ans += "1";
        st[++top] = 1;
      }
    } else {
      if (st[top--] == 1)
        ans += "1";
      else
        ans += "0";
    }
  }
  cout << ans << endl;
}
