#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  string s;
  cin >> s;
  long long cur = 0;
  for (long long i = 0; i < n; i++) {
    if (s[i] == ')') cur--;
    cout << (cur % 2);
    if (s[i] == '(') cur++;
  }
  return 0;
}
