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