#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  cin >> s;
  int a = 0, b = 0, c = 0, d = 0, e = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'o') a++;
    if (s[i] == 'e') b++;
    if (s[i] == 'z') c++;
    if (s[i] == 'r') d++;
    if (s[i] == 'n') e++;
  }
  while (e--) {
    cout << 1 << " ";
  }
  while (c--) {
    cout << 0 << " ";
  }
  cout << endl;
}
