#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  char x;
  cin >> n;
  map<char, int> m;
  for (int i = 0; i < n; ++i) {
    cin >> x;
    m[x]++;
  }
  for (int i = 0; i < (int)m['n']; ++i) {
    cout << 1 << " ";
  }
  for (int i = 0; i < (int)m['z']; ++i) {
    cout << 0 << " ";
  }
  return 0;
}
