#include <bits/stdc++.h>
using namespace std;
map<char, int> m;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  string s;
  cin >> s;
  for (int i = 0; i < n; i++) {
    m[s[i]]++;
  }
  int o = min(m['n'], min(m['o'], m['e']));
  m['n'] -= o;
  m['e'] -= o;
  m['o'] -= o;
  int z = min(m['z'], min(m['e'], min(m['r'], m['o'])));
  while (o) {
    cout << 1 << " ";
    o--;
  }
  while (z) {
    cout << 0 << " ";
    z--;
  }
  cout << endl;
  return 0;
}
