#include <bits/stdc++.h>
using namespace std;
const int N = 200005;
int a[N], n, x, y;
char str[N];
int main() {
  scanf("%d", &n);
  scanf(" %s", str);
  for (int i = 0; i < n; i++) {
    if (str[i] == '(')
      printf("%d", x), x ^= 1;
    else
      printf("%d", y), y ^= 1;
  }
  return 0;
}
