#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, ns = 0, zs = 0;
  string s;
  cin >> n >> s;
  for (int i = 0; i < n; ++i) {
    if (s[i] == 'z')
      zs++;
    else if (s[i] == 'n')
      ns++;
  }
  for (int i = 0; i < ns; ++i) {
    cout << 1 << ' ';
  }
  for (int i = 0; i < zs; ++i) {
    cout << 0 << ' ';
  }
}
