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