#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  string s;
  cin >> s;
  int z = 0, e = 0, r = 0, o = 0, n = 0;
  for (int i = 0; i < a; i++) {
    if (s[i] == 'n') {
      n++;
    }
    if (s[i] == 'o') {
      o++;
    }
    if (s[i] == 'z') {
      z++;
    }
    if (s[i] == 'e') {
      e++;
    }
    if (s[i] == 'r') {
      r++;
    }
  }
  int t = min(min(o, n), e);
  for (int i = 0; i < t; i++) {
    cout << 1 << " ";
  }
  o -= t;
  n -= t;
  e -= t;
  int t2 = min(min(min(z, e), r), o);
  for (int i = 0; i < t2; i++) {
    cout << 0;
    if (i < t2 - 1) {
      cout << " ";
    }
  }
  return (0);
}
