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