#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<char> a(n);
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  int ze, on;
  ze = count(a.begin(), a.end(), 'z');
  on = count(a.begin(), a.end(), 'n');
  while (on--) {
    cout << "1 ";
  }
  while (ze--) {
    cout << "0 ";
  }
  return 0;
}
