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