#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, a = 0, b = 0, c = 0, d = 0, i, e = 0, mine = 0, mn = 0;
  cin >> n;
  string s;
  cin >> s;
  for (i = 0; i < s.size(); i++) {
    if (s[i] == 'z') a++;
    if (s[i] == 'e') b++;
    if (s[i] == 'r') c++;
    if (s[i] == 'o') d++;
    if (s[i] == 'n') e++;
  }
  mn = min(min(d, c), min(a, b));
  if (b > mn && d > mn && e > 0) {
    mine = min(min((b - mn), (d - mn)), e);
    for (i = 0; i < mine; i++) {
      cout << "1"
           << " ";
    }
  }
  if (mn > 0) {
    for (i = 0; i < mn; i++) {
      cout << "0"
           << " ";
    }
  }
  cout << endl;
}
