#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ans = 0;
  cin >> n;
  string s;
  cin >> s;
  int a[5] = {0};
  for (int i = 0; i < n; i++) {
    if (s[i] == 'z')
      a[0]++;
    else if (s[i] == 'e')
      a[1]++;
    else if (s[i] == 'r')
      a[2]++;
    else if (s[i] == 'o')
      a[3]++;
    else if (s[i] == 'n')
      a[4]++;
  }
  while (a[3] != 0 && a[4] != 0 && a[1] != 0) {
    a[3]--;
    a[4]--;
    a[1]--;
    cout << 1 << " ";
  }
  while (a[0] != 0 && a[1] != 0 && a[2] != 0 && a[3] != 0) {
    a[0]--;
    a[1]--;
    a[2]--;
    a[3]--;
    cout << 0 << " ";
  }
  return 0;
}
