#include <bits/stdc++.h>
int comparetor(const void* a, const void* b);
int main(void) {
  int n;
  scanf("%d", &n);
  char str[n];
  scanf("%s", str);
  int count_n = 0, count_z = 0;
  for (int i = 0; i < n; i++) {
    if (str[i] == 'n') count_n++;
    if (str[i] == 'z') count_z++;
  }
  while (count_n--) printf("%d ", 1);
  while (count_z--) printf("%d ", 0);
  return 0;
}
