#include <bits/stdc++.h>
using namespace std;
int main() {
  int l, o = 0, n = 0, e = 0, z = 0, r = 0, n1, n0;
  char c;
  cin >> l;
  for (int i = 0; i < l; i++) {
    cin >> c;
    if (c == 'o')
      o++;
    else if (c == 'n')
      n++;
    else if (c == 'e')
      e++;
    else if (c == 'z')
      z++;
    else
      r++;
  }
  n1 = min(o, min(n, e));
  o -= n1;
  n -= n1;
  e -= n1;
  n0 = min(min(z, e), min(r, o));
  for (int i = 0; i < n1; i++) cout << "1 ";
  for (int i = 0; i < n0; i++) cout << "0 ";
  cout << endl;
}
