#include <bits/stdc++.h>
int main() {
  int t, n, a, b, c, x, z = 0, e = 0, r = 0, o = 0, n1 = 0;
  char s[100000];
  scanf("%d", &n);
  scanf("%s", &s);
  for (x = 0; x < n; x++) {
    if (s[x] == 'z')
      z++;
    else if (s[x] == 'e')
      e++;
    else if (s[x] == 'r')
      r++;
    else if (s[x] == 'o')
      o++;
    else if (s[x] == 'n')
      n1++;
  }
  if (n1 <= o && n1 <= e) {
    for (x = 0; x < n1; x++) printf("1 ");
    o -= n1;
    e -= n1;
    a = (o > e) ? e : o;
    b = (z > r) ? r : z;
    c = (a > b) ? b : a;
    for (x = 0; x < c; x++) printf("0 ");
  } else {
    t = (o > e) ? e : o;
    for (x = 0; x < t; x++) printf("1 ");
  }
}
