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