#include <bits/stdc++.h>
using namespace std;
const int Size = 1024;
const int mod2 = 998244353;
const int mod = 1e9 + 7;
const int INF = 0x3f3f3f3f;
const int maxn = 4e5 + 15;
const int base = 307;
char a[maxn];
int main() {
  int n;
  scanf("%d", &n);
  int z = 0;
  scanf("%s", a + 1);
  int tot = 0;
  for (int i = 1; n >= i; i++) {
    if (a[i] == 'z') z++;
  }
  n = (n - z * 4) / 3;
  for (int i = 1; n >= i; i++) {
    if (tot) printf(" ");
    printf("1");
    tot++;
  }
  for (int i = 1; z >= i; i++) {
    if (tot) printf(" ");
    printf("0");
    tot++;
  }
  printf("\n");
  return 0;
}
