#include <bits/stdc++.h>
int main() {
  int q;
  scanf("%d", &q);
  char c[100000];
  scanf("%s", c);
  int z = 0, n = 0;
  int i, j;
  for (i = 0; i < q; i++) {
    if (c[i] == 'z') {
      z++;
    } else if (c[i] == 'n') {
      n++;
    }
  }
  for (j = 0; j < n; j++) {
    printf("1 ");
  }
  for (j = 0; j < z; j++) {
    printf("0 ");
  }
}
