#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  string s;
  cin >> s;
  int z, e, r, o, n;
  z = e = r = o = n = 0;
  for (int i = 0; i < N; i++) {
    if (s[i] == 'z')
      z++;
    else if (s[i] == 'e')
      e++;
    else if (s[i] == 'r')
      r++;
    else if (s[i] == 'o')
      o++;
    else
      n++;
  }
  int minOne = min(min(o, n), e);
  int oe = min(o, e);
  int zr = min(z, r);
  int ansfirst, anssecond;
  ansfirst = min(n, oe);
  oe -= ansfirst;
  anssecond = min(oe, zr);
  for (int i = 0; i < ansfirst; i++)
    cout << "1"
         << " ";
  for (int i = 0; i < anssecond; i++)
    cout << "0"
         << " ";
}
