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