#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string txt;
  cin >> txt;
  int l[5];
  for (int i = 0; i < 5; i++) {
    l[i] = 0;
  }
  for (int i = 0; i < n; i++) {
    if (txt[i] == 'n') {
      l[0]++;
    } else if (txt[i] == 'e') {
      l[1]++;
    } else if (txt[i] == 'o') {
      l[2]++;
    } else if (txt[i] == 'z') {
      l[3]++;
    } else if (txt[i] == 'r') {
      l[4]++;
    }
  }
  int t = *min_element(l, l + 3);
  for (int i = 0; i < 3; i++) {
    l[i] -= t;
  }
  int m = *min_element(l + 1, l + 5);
  for (int i = 0; i < t; i++) {
    cout << "1 ";
  }
  for (int i = 0; i < m; i++) {
    cout << "0 ";
  }
}
