#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  map<char, int> mmap;
  for (int i = 0; i < s.size(); i++) {
    mmap[s[i]]++;
  }
  int a = 0, b = 0;
  for (int i = 0; i <= s.size(); i++) {
    if (mmap['z'] == i and mmap['r'] == i) {
      int x = mmap['e'] - mmap['z'];
      if (mmap['o'] == mmap['e'] and mmap['n'] == x) {
        a = i;
        b = x;
        break;
      }
    }
  }
  for (int i = 1; i <= b; i++) {
    cout << 1 << " ";
  }
  for (int i = 1; i <= a; i++) {
    cout << 0 << " ";
  }
}
