#include <bits/stdc++.h>
using namespace std;
int cnt[256];
int main() {
  int x;
  cin >> x;
  string s;
  cin >> s;
  int o = 0, z = 0, e = 0, r = 0, n = 0;
  for (int i = 0; i < x; ++i) {
    if (s[i] == 'o')
      o++;
    else if (s[i] == 'z')
      z++;
    else if (s[i] == 'e')
      e++;
    else if (s[i] == 'r')
      r++;
    else
      n++;
  }
  int one = min(min(o, n), e);
  o = o - one;
  n = n - one;
  e = e - one;
  int zero = min(min(min(o, e), r), z);
  for (int i = 0; i < one; ++i) cout << 1 << " ";
  for (int i = 0; i < zero; ++i) cout << 0 << " ";
}
