#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, i;
  cin >> N;
  char ch;
  int o = 0, n = 0, e = 0, z = 0, r = 0;
  for (i = 0; i < N; i++) {
    cin >> ch;
    if (ch == 'o')
      o++;
    else if (ch == 'n')
      n++;
    else if (ch == 'e')
      e++;
    else if (ch == 'z')
      z++;
    else
      r++;
  }
  int m1, m2;
  m1 = min(o, min(n, e));
  o -= m1;
  e -= m1;
  while (m1--) cout << "1 ";
  m2 = min(z, min(e, min(r, o)));
  while (m2--) cout << "0 ";
  return 0;
}
