#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  string s;
  cin >> s;
  int zCnt = 0;
  int nCnt = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'z') {
      zCnt++;
    }
    if (s[i] == 'n') {
      nCnt++;
    }
  }
  while (zCnt > 0 || nCnt > 0) {
    if (nCnt > 0) {
      cout << 1 << " ";
      nCnt--;
    } else {
      cout << 0 << " ";
      zCnt--;
    }
  }
  return 0;
}
