#include <bits/stdc++.h>
int main() {
  int vel, z = 0, e = 0, r = 0, o = 0, n = 0;
  scanf("%d", &vel);
  for (int i = 0; i <= vel; ++i) {
    char ctmp;
    scanf("%c", &ctmp);
    if (ctmp == 'z')
      z++;
    else if (ctmp == 'e')
      e++;
    else if (ctmp == 'r')
      r++;
    else if (ctmp == 'o')
      o++;
    else if (ctmp == 'n')
      n++;
  }
  while (o > 0 && n > 0 && e > 0) {
    printf("1 ");
    o--;
    n--;
    e--;
  }
  while (z > 0 && e > 0 && r > 0 && o > 0) {
    printf("0 ");
    z--;
    e--;
    r--;
    o--;
  }
  return 0;
}
