#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cout.tie(nullptr);
  int t, n, m, a, b, past[300004], maxread = 0;
  vector<pair<int, int>> ed;
  string s;
  cin >> n >> s;
  a = 0;
  b = 0;
  for (int i = 0; i < n; i++) {
    if (s[i] == 'n') {
      a++;
    } else if (s[i] == 'z') {
      b++;
    }
  }
  for (int i = 0; i < a; i++) {
    cout << "1 ";
  }
  for (int i = 0; i < b; i++) {
    cout << "0 ";
  }
  cout << "\n";
  return 0;
}
