#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int n;
  cin >> n;
  string s;
  cin >> s;
  int ns = 0, zs = 0;
  for (const auto &c : s) {
    if (c == 'n') {
      ++ns;
    } else if (c == 'z') {
      ++zs;
    }
  }
  ostringstream oss;
  for (int i = 0; i < ns; ++i) {
    oss << "1 ";
  }
  for (int i = 0; i < zs; ++i) {
    oss << "0 ";
  }
  cout << oss.str() << endl;
  return 0;
}
