#include <bits/stdc++.h>
int main() {
  int n, c, N = 0, Z = 0;
  scanf("%d", &n);
  c = getchar();
  while ((c = getchar()) != '\n') {
    if (c == 'n') {
      N++;
    }
    if (c == 'z') {
      Z++;
    }
  }
  for (n = 0; n < N; ++n) {
    printf("1 ");
  }
  for (n = 0; n < Z; ++n) {
    printf("0 ");
  }
  return 0;
}
